googleapis / googleapis/google-api-nodejs-client

400 error at chat api media.download

Open
#3,233 0 comments 0 reactions 0 assignees View on GitHub
priority: p2 type: bug
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

In the chat API, there is an error causing return of http 400 for any use of the media.download API.

Steps to reproduce:
1) Get a valid resource ID for an uploaded attachment from chat.messages.attachment.get
2) Feed into media.download API

I believe the error is due to a mistake in the URL. Per https://developers.google.com/chat/api/reference/rest/v1/media/download and https://developers.google.com/chat/how-tos/get-attachment it may need to have "?alt=media" appended to the end of the URL to support download.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.