Kyon147 / laravel-shopify

A full-featured Laravel package for aiding in Shopify App development
MIT License
363 stars 107 forks source link

GraphQL API error messages handled incorrectly #263

Closed bastos71 closed 8 months ago

bastos71 commented 8 months ago

Expected Behavior

Printing the error message when receiving an error from API request.

Current Behavior

Only "1" is returned, as you can see in the capture

image

Key body should be used in priority , here is what I get by doing dd($response) :

image

Context

Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.

Kyon147 commented 8 months ago

Hey @bastos71

Can you explain a bit more on what the issue is, as your screenshot shows the response has error as true `and the body contains the error.

bastos71 commented 8 months ago

Hi @Kyon147 !

I figured out the error was triggered because I forgot to disable hashed cast in User entity I assume you can reproduce the issue by doing the same error ^^'

Kyon147 commented 8 months ago

Ah right yeah, it makes the api passwords for each store unusable - glad you found the issue