GitHub
03/19/2025, 11:42 PMmsg = self.response_error_message(response) + "\n" + str(response.json())
The data the comes back is so much more helpful in most cases. Wrapping that in a try catch and doing it by default seems appropriate. I've implemented this personally on >5 taps at this point.
Behavior today:
File "/home/visch/git/tap-zuora/.meltano/extractors/tap-zuora/venv/lib/python3.8/site-packages/singer_sdk/streams/rest.py", line 193, in validate_response
raise FatalAPIError(msg)
singer_sdk.exceptions.FatalAPIError: 400 Client Error: for path: /settings/entity-profile-info
Behavior after this:
File "/home/visch/git/tap-zuora/.meltano/extractors/tap-zuora/venv/lib/python3.8/site-packages/singer_sdk/streams/rest.py", line 193, in validate_response
raise FatalAPIError(msg)
singer_sdk.exceptions.FatalAPIError: 400 Client Error: for path: /settings/entity-profile-info
{'errorCode': 'REMOTE_HTTP_CLIENT_ERROR', 'remoteHttpStatus': 403, 'messages': ['{"error":"403 Forbidden","processId":"D39CB301F868C6B2","message":"security.error.noPermission"}']}
meltano/sdkGitHub
03/19/2025, 11:42 PM