Skip to content

Conversation

@Gitii
Copy link
Contributor

@Gitii Gitii commented Feb 4, 2024

Hi @Xetera,

While using your library, I encountered a peculiar JSON decoding error. This issue turned out to be caused by a 302 redirect response, where the Amazon server was attempting to reauthenticate the session.

To address this, I added a check to ensure the response code from Amazon is as expected (200) before parsing the JSON body. This allows callers to catch the error and respond accordingly.

Please take a look at it.

Thanks!

@Gitii
Copy link
Contributor Author

Gitii commented Feb 9, 2024

I will update this PR as soon as the other one has been merged.

@Gitii Gitii marked this pull request as draft February 9, 2024 21:10
@Gitii Gitii force-pushed the feat/check-response-code branch from d93e666 to e40a843 Compare February 12, 2024 18:26
@Gitii Gitii marked this pull request as ready for review February 12, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant