Issues with moonraker [button]

Hey guys, im in the process of working on my own latching emergency switch for my 3d printer.

I tried using M112 gcode to shutdown the printer, but it is frankly too slow as it queues. On the moonraker documentation, I found [button] section, which seemed perfect for my usecase, as it can be operated when klipper is shutdown.

moonraker (1).log (443.4 KB)

This has sadly not come without issues. Mainly, copying the example config from the documentation yielded this obscure error, which made me annoyed as I could not find a direct cause for it, and my NC emergency shutdown switch’s continuity was fine on the dupont connectors and connected to GPIO5/GND and GPIO26/GND respectively (I tried both).

A few images relating to my config VS docs and a pi pinout here: (open the link for all images)

Any help is appreciated! Please let me know what you think and if this is an issue with software/hardware or a combination of both.