Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tratar erro Unauthorized #4

Open
dersonsena opened this issue Dec 30, 2023 · 0 comments
Open

Tratar erro Unauthorized #4

dersonsena opened this issue Dec 30, 2023 · 0 comments

Comments

@dersonsena
Copy link
Contributor

Na classe CreatePixChargeGateway na linha 46, onde são capturadas as exceptions, quando é retornado um erro 401 o resultado não vem no formato JSON e sim em texto puro. Devemos tratar isso para garantir que sempre será retornado um JSON para o usuário final.

"Client error: `POST https://www.asaas.com/api/v3/payments` resulted in a `401 Unauthorized` response"
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

No branches or pull requests

1 participant