I'm currently working with the Google Chat API to upload documents. The process involves using the "upload doc" API, which returns a token that I then use in the "add message" API to attach the token that we get. However, I'm consistently getting a 500 error when calling the "upload doc" API.
Is there a direct API call for uploading documents, or a way to resolve the 500 error? Any insights would be appreciated!
Thanks in advance!
Hi harshwardhan16,
Thanks for reaching out! Is this question about Application Integration? If not, kindly suggest to modify the topic label for a faster routing to the relevant product team. If it's about Application Integration, would you mind to provide more information about the issue? Did you use a Connector or REST task to use this API? Thanks!
Hi @harshwardhan16 ,
Adding to @zhuht's response, you might want to post this on the Google Workspace community as well, where experts frequently share deeper insights on API-related issues or for more Google Chat specific advice.
For more context, here are the possible reasons for the error codes with the Google Chat API. I’m assuming you’re using the media.upload
method for the “upload doc” API you’re calling, so make sure that the requirements such as applicable file types, user authentication, or file sizes are followed. If you’re still getting errors, follow the Google Chat troubleshooting guide.
If you have Workspace Admin permissions, you can contact Google Workspace support to create a case. You may also file a bug report on the Google Chat API public issue tracker. We may sometimes ask for more details, clarification, or a followup. Do note that there isn’t a specific timeframe for issue resolution. However, once we've fixed an issue in production, we'll indicate this and then we'll close the issue.
I hope this helps!