My Pi-hole is working and serving DHCP, but I’m getting errors whenever I try to run pihole -r or pihole -up

Expected Behaviour:

Pi-hole should update or repair normally when running pihole -r or pihole -up.
My setup is currently working as expected for blocking ads, and Pi-hole is successfully acting as my DHCP server. I expect the update/repair commands to run without errors.

System details:

Operating System: Raspberry Pi OS Lite (no desktop)
Hardware: Raspberry Pi Zero 2 W
Docker: Not using Docker (standard Pi-hole installation)

Actual Behaviour:
Pi-hole runs normally for ad-blocking and DHCP, but whenever I run pihole -r or pihole -up, I get an error message and both commands fail. The Pi-hole web interface works, DHCP works, and ad blocking works — only these maintenance commands are having issues.

Debug Token:

When i went to debug it worked but then w hen i went to get the token it had an error uploading the debug.

curl failed, contact Pi-hole support for assistance.
* Error message: curl: (22) The requested URL returned error: 502

What does the output from sudo apt update && sudo apt -y upgrade show you?

After processing it just gives me a command line to type in again. Ran both -up and -r and it worked cant believe i missed something like that but thank you !