twitchdev / issues

Issue tracker for third party developers.
Apache License 2.0
73 stars 6 forks source link

404 Responses to Chat API #765

Open streamstickers opened 1 year ago

streamstickers commented 1 year ago

Brief description

A number of our users are reporting not seeing chat messages when we fire them to the Chat API. We added some logging and noticed we are receiving 404 responses.

How to reproduce

We are sending extension chat API requests to: https://api.twitch.tv/helix/extensions/chat?broadcaster_id=XXXXXXXX and we are receiving a 404 response payload: { "error": "Not Found", "status": 404, "message": "Error (404): The record was not found" } This is only happening sporadically and the 404 error is not documented at https://dev.twitch.tv/docs/api/reference/#send-extension-chat-message.

Expected behavior

We should not be receiving 404 responses when making chat API requests.

Screenshots

Additional context or questions

BarryCarlyon commented 1 year ago

404's usually happen if I've used the wrong version in my call.

Or I'm trying to send to a channel that has uninstalled the extension/it's not active in a slot.

So I would suspect that the channel you are trying to send to has done one of those actions. Likely uninstalled but you had a queued message to send with the wrong version in the payload?

Also a potential edge case if you just hit "release" on a new version and somewhere either side of the call the wrong version number is in use so a mismatch of the requested version and installed version on the channel

streamstickers commented 1 year ago

I can confirm the channels experiencing these issues are long time users who have not disabled the extension. They are reporting the issues in real-time with the extension active (I'm even in the room in some cases).

All calls are the same in this case, so doesn't seem to be an issue of some going out with the wrong version from what we can see.