Recent Nightbot urlfetch changes break functionality

Asked Nov 6, 2026·2 replies·Last activity today·Open in Discord ↗
This discussion is live on Discord
Replies posted there show up here automatically.

2 replies

do you have more information than that? we did rewrite the internal service for this, but those headers should be identical

Things broke sometime over the last day or so. Unfortunately, I don't have heavy logging on the server side, and it's returning text, not json. What I found was that Nightbot started returning [Response must be less than 400 characters]. I couldn't figure out why, but I edited my urlfetch command to include extra channel details in the query string, and things started working properly.

The backend was designed to use the headers when they are available, and thus the additional channel details aren't usually included in the urlfetch command. Without that information, a much longer response is returned, which results in the over 400 characters message, so when things started working properly when sending the channel along explicitly, I was lead to believing the headers must be missing. No code was changed in the service being called.