Skip to content
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

GraphQL Client Uses Wong Path When an API Version is Not Specified #314

Open
sshaw opened this issue Dec 8, 2024 · 1 comment
Open

Comments

@sshaw
Copy link

sshaw commented Dec 8, 2024

Currently if no API version is specified a request is made to:

https://SHOP.myshopify.com/admin/graphql.json

Which results in an HTTP 406.

When a version is specified we get:

https://SHOP.myshopify.com/admin/api/2024-04/graphql.json

This is causing issues for several users including myself. See the comments on #228.

Shopify does support versionless API calls: https://shopify.dev/docs/api/usage/versioning#making-requests-to-an-api-version the api path segment just needs to be included. If I recall, the REST API does this if a version is not specified.

@sshaw
Copy link
Author

sshaw commented Dec 8, 2024

Shopify does support versionless API calls...

And in a lot of cases this is the preferred way to call. For Shopify apps, if you're making calls that do not change between version but using a version string that is ultimately deprecated, Shopify will tell your users you app is "unsupported" even when it works 100%.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant