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

AS-117: github issue 83 and 47 to handle truncated error messages #183

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

svc-developer
Copy link
Collaborator

This PR will take care of the following github issues:

Earlier the error messages were truncated like the following:
"Client error: POST https://sandbox-rest.avatax.com/api/v2/transactions/createresulted in a401 Unauthorizedresponse:\n{\"error\": {\"code\": \"AuthenticationException\",\"message\": \"Authentication failed.\",\"details\": [{\"code\": \"AuthenticationExc (truncated...)\n"

Post fix, the error message would look like the following:
"{\"error\": {\"code\": \"AuthenticationException\",\"message\": \"Authentication failed.\",\"details\": [{\"code\": \"AuthenticationException\",\"message\": \"Authentication failed.\",\"description\": \"Missing authentication or unable to authenticate the user or the account.\",\"faultCode\": \"Client\",\"helpLink\": \"http:\/\/developer.avalara.com\/avatax\/errors\/AuthenticationException\"}]}}"

This was explained in detail here:
https://laracasts.com/discuss/channels/general-discussion/guzzle-error-message-gets-truncated?page=1&replyId=127348

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.

None yet

2 participants