Describe the bug
A 400 response might occasionally lack a body or message. This can trigger a type error in the ApiException class due to the absence of a message for the constructor.
Sentry Stacktrace of the $message being missing
And Sentry Stacktrace of the body being missing:
To Reproduce
The cause of this intermittent response is unclear, so I can't provide exact steps for replication. While it occurs multiple times daily, the majority of my API calls are successful.
Expected behavior
It might be more effective to create a generic exception for these situations. This would allow me to catch it and try again
Environment (please complete the following information):
Describe the bug A
400
response might occasionally lack a body or message. This can trigger a type error in the ApiException class due to the absence of a message for the constructor.Sentry Stacktrace of the
$message
being missingAnd Sentry Stacktrace of the body being missing:
To Reproduce The cause of this intermittent response is unclear, so I can't provide exact steps for replication. While it occurs multiple times daily, the majority of my API calls are successful.
Expected behavior It might be more effective to create a generic exception for these situations. This would allow me to catch it and try again
Environment (please complete the following information):