You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the commit: Spoje-NET/php-flexibee@7df25e9 you've changed the keys used to parse the error messages.
Original key: $responseDecoded['results'][0]['errors']
New key: $responseDecoded['results'][0]['result']
The new key does not correspond with the real response structure so I'm getting the folowing error:
ErrorException: Undefined index: result in /var/www/html/vendor/spojenet/flexibee/src/FlexiPeeHP/FlexiBeeRO.php:1081
Hallo, there is problem with response to array conversion. Could you please provide your query that produces badly parsed error response ?
Thank you for your help
Activity
Vitexus commentedon Sep 9, 2020
Hallo, there is problem with response to array conversion. Could you please provide your query that produces badly parsed error response ?
Thank you for your help
#4 - Error response parser fix
Vitexus commentedon Sep 9, 2020
Hallo Petr,
could you please confirm that latest commit fix our issue ?
petaak commentedon Sep 9, 2020
For example when I don't have permission to create an invoice I get the following response:
Vitexus commentedon Sep 9, 2020
Ok, your problem was hotfixed. See https://github.com/Spoje-NET/php-flexibee/blob/master/src/FlexiPeeHP/FlexiBeeRW.php#L139
We need more complex error response parser in future.
Do you need release or you use dev-maser in your project ?
petaak commentedon Sep 9, 2020
Seems to be working. Thanks for a quick fix. A release would be nice.
Vitexus commentedon Sep 9, 2020
Here we go https://github.com/Spoje-NET/php-flexibee/releases/tag/1.39
Have good night