googleapis / googleapis/google-api-nodejs-client

400 error at chat api media.download

Aperta
#3,233 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
priority: p2 type: bug
Lingua principale
TypeScript
Stelle
12.2k
Fork
2k
Merge medio
1g 9h
PR unite (30g)
24

Descrizione

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.

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating the generated Chat API definition or client entry point for media.download and compare its request URL with the linked Google Chat documentation. Reproduce the call using a resource ID from chat.messages.attachment.get, then verify that the corrected request downloads the attachment instead of returning HTTP 400.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
nodejs, typescript
Ambito
api
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.