We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Trunkrs SDK version(s) affected: 2.0.0 PHP version(s) affected: 7.3.11
Description The ServerValidationException throws an Exception in the constructor when trying to read the "message" property from the JSON.
How to reproduce Create a for example a shipment that will make the server return a validation error.
Possible Solution By the looks of it the correct data to be read is in the "reason" property instead of the "message" one. Possibly change it to that?
Additional context Location where exception gets thrown is marked in yellow:
The text was updated successfully, but these errors were encountered:
Thanks @JSRM99, very good catch! 👍
Sorry, something went wrong.
Fix #26: V2 validation message
3831f2a
Merge pull request #27 from Trunkrs/fix/issue-26
82bc8ce
Resolve #26: Add download method to labels for v2
4f3e2c0
fean
Successfully merging a pull request may close this issue.
Trunkrs SDK version(s) affected: 2.0.0
PHP version(s) affected: 7.3.11
Description
The ServerValidationException throws an Exception in the constructor when trying to read the "message" property from the JSON.
How to reproduce
Create a for example a shipment that will make the server return a validation error.
Possible Solution
By the looks of it the correct data to be read is in the "reason" property instead of the "message" one.
Possibly change it to that?
Additional context
![image](https://user-images.githubusercontent.com/37828702/107035828-024acf80-67b9-11eb-8efd-7d711b4b32e8.png)
Location where exception gets thrown is marked in yellow:
The text was updated successfully, but these errors were encountered: