Happy Business Starts Here

Highlighted
Valued Scholar

Bug: Zuora REST API randomly fails with Authentication error

Hi!

 

We implement data integration for BI purposes. I expected 401 to be a "hard" error, therefore we implemented notifications to people to check up on their credentials & stopped updating data assuming the integration can't retry this.

 

But we now observed several times that valid credentials get HTTP 401 response from the Zuora API randomly. If it's some transitional unavailability of authentication service or such, you should return HTTP 5**, otherwise it's breaking integrations.

 

`API error: https://rest.zuora.com/v1/action/query: 401: 401 Unauthorized: {\"message\":\"Authentication error\"}`

 

We use Basic HTTP Auth with username and password. I tried to replicate several times, but it's not easy. It works 99 % of time, then randomly fails. We will put in place a workaround with retry for now and quiet the notifications.

 

HTTP 401 is not transitional error, so this breaks HTTP specs, if you're refusing valid credentials: https://tools.ietf.org/html/rfc7235#section-3.1

 

Please contact me, if you need more debugging information, I'll be happy to help resolve this issue.

5 REPLIES 5
Zuora Documentation

Re: Bug: Zuora REST API randomly fails with Authentication error

Hi @kopacpetr,

 

Thank you very much for reporting this issue. Please could you submit a request for assistance at https://support.zuora.com/ so that our Support team can investigate further. If you can include as much debugging information as possible, that will help a lot.

Honor Student

Re: Bug: Zuora REST API randomly fails with Authentication error

Hi Team

 

Could please let us know how you resolved the issue mentioned above. We are facing the same issue mentioned above when connecting to Zuora.

Valued Scholar

Re: Bug: Zuora REST API randomly fails with Authentication error

We helped Zuora support investigate, but no evidence was found proving that it would be a bug. We weren't logging the concrete request IDs from headers either, so we started doing that for the future. Right now we just retry, since we weren't able to pinpoint the reason why it happened.

Honor Student

Re: Bug: Zuora REST API randomly fails with Authentication error

Thanks for the update. The zuora support team said this would happen if there is an incident that happens at the zuora side during which the API calls will not go through. The time when we had this error, there was an incident log had zuora once it was fixed we were able to make the API call successfully.

Valued Scholar

Re: Bug: Zuora REST API randomly fails with Authentication error

Well, at least they told you, thanks for sharing. They should really return HTTP 5** in case of such transitional problems.