Happy Business Starts Here

Highlighted
Zuora Support

Why am I getting two responses for a callout from Zuora?

We have configured callout notifications in our Zuora Tenant to trigger requests to our server.

Screen Shot 2019-11-13 at 1.41.46 PM.png

 

The callouts are working fine and we can see all the callouts in the notification history show succeeded.

But when I check our server log, I could see two responses one without authentication and second one with authentication.

 

Why is that happening?






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √

1 REPLY 1
Zuora Support

Re: Why am I getting two responses for a callout from Zuora?

The behaviour observed is the expected behaviour. 

If you check these callouts are configured using basic authentication. So the Basic Auth follows a "challenge-response" mechanism, which means it requires the first request to the server to be sent without credentials. After receiving 401 Unauthorized error from the server, a second request should then be sent out with encoded credentials. 

(Please be noted that the 1st attempt without a credential and 2nd attempt with credential are 2 separate requests which are considered as 1 attempt visible to the user, which means the 401 error returned for the 1st attempt will not be counted in the Maximum Number of Delivery Attempts configured for Callout Retry rules)

 

Refer the below documentation for more details:
https://knowledgecenter.zuora.com/CF_Users_and_Administrators/Notifications/E_Configure_Callout_Noti...






If you found my answer helpful, please give me a kudo ↑
Help others find answers faster by accepting my post as a solution √