-
-
Notifications
You must be signed in to change notification settings - Fork 78
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
CommandException doesn't contain response data #44
Comments
The response wont always be set, for example, when a networking error occurs. This is something you need to account for when working with these exceptions. |
How can we get status code? |
There is no status code if a networking error occurs because no response was received. You can check the error message of the exception for more specifics on the error. More generally speaking, if no response is set then it tells you a networking error occurred.
|
I checked what error was sent from API. It just validation error message with status 400. |
This seems to be fixed now. Also note that you can use |
What we do:
We're receiving errors from API and pass them to view. But
$exception->getTransaction()->getResponse()
is null.The text was updated successfully, but these errors were encountered: