Skip to content

[Bug]: TeamsAttachmentDownloader - 401 Axios Request  #1404

@lilyydu

Description

@lilyydu

Language

Javascript/Typescript

Version

latest

Description

A 401 AxiosError is being thrown in downloadFile function, when attempting the GET request on attachment.contentUrl. A token is being generated, and the current logic is the same prior to merging #1207, hence my suspicion is that the access token is not in the correct format. If this is the case, the bug is probably nested in getAccessToken method

NOTE: This is with the updated code in #1403

Reproduction Steps

1. Spin up the Cardgazer bot
2. Send the bot a message to construct an adaptive card, with a photo of a form.
3. The code should throw a 401 AxiosError.
...

Metadata

Metadata

Assignees

Labels

JSChange/fix applies to JS. If all three, use the 'JS & dotnet & Python' labelP0bugSomething isn't workingjavascriptPull requests that update Javascript code

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions