Reputation: 21
I’m currently working with the Google Chat API to send messages to specific spaces using webhooks. I have encountered a persistent 404 error (Requested entity was not found) when trying to send a message using a particular thread key, even though this thread key has been working in other spaces.
Here are some details about my implementation:
https://chat.googleapis.com/v1/spaces/SPACE_NAME/messages?key=YOUR_API_KEY&token=YOUR_TOKEN&messageReplyOption=REPLY_MESSAGE_FALLBACK_TO_NEW_THREAD
and body is { "text": "Hello!", "thread": { "threadKey": "threadName" } }
I have confirmed that the thread key exists and has not been deleted or modified because the previous messages are still available in that particular thread. However, I get a 404 error when sending to this specific thread key.Here’s what I’ve tried so far:
Given that changing the thread key resolves the issue, but I cannot do this for all spaces, I'm seeking insights into the following:
Any guidance on how to troubleshoot this issue would be greatly appreciated. Thank you!
Upvotes: 2
Views: 94