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
My first 3 retrieved orders work without an error. Then when retrieving again I get this error: Message: slice doesn't exist in any of 1 places to unmarshal, Locations: [], Extensions: map[code:graphql_decode_error]
I noticed that extensions was included in the response and assumed that the error was related so I attempted to add this structure at the root of the query which failed, then at the orders level of the query which failed:
Extensions did not solve the error. Probably because it does not contain a slice.
I tried with and without pointers on multiple different optional object types and it didn't seem to make a difference either.
I am following the Shopify GraphQL Admin API documentation on Orders here:
https://shopify.dev/docs/api/admin-graphql/2024-07/queries/orders
My first 3 retrieved orders work without an error. Then when retrieving again I get this error:
Message: slice doesn't exist in any of 1 places to unmarshal, Locations: [], Extensions: map[code:graphql_decode_error]
Here my my schema:
Here is the
WithDebug(true)
schema response stored in thegraphql.Errors
object:I noticed that
extensions
was included in the response and assumed that the error was related so I attempted to add this structure at the root of the query which failed, then at the orders level of the query which failed:Extensions did not solve the error. Probably because it does not contain a slice.
I tried with and without pointers on multiple different optional object types and it didn't seem to make a difference either.
This issue may be related to #139
It works fine with
QueryRaw
andjson.Unmarshal
.The text was updated successfully, but these errors were encountered: