-
Notifications
You must be signed in to change notification settings - Fork 482
Description
Issue summary
Before opening this issue, I have:
- [ ✅ ] Looked for similar issues in this repository
Issue
Facing an issue while hitting the shop api using Admin GraphQL API and it responds with an error,
`eval error: unexpected character: 'Bad Request'
Here is the graphQl client
#<ShopifyAPI::Clients::Graphql::Admin:0x00007fe204d48b98 @api_version="2025-01", @http_client= #<ShopifyAPI::Clients::HttpClient:0x00007fe204d48ad0 @base_uri="store_path", @base_uri_and_path="https://store_name/admin/api", @headers={:"User-Agent"=>"Shopify API Library v14.7.0 | Ruby 3.1.6", :Accept=>"application/json", "X-Shopify-Access-Token"=>"shpat_", "Content-Type"=>"application/json"}>>
Query:
query MyQuery {
shop {
id
myshopifyDomain
name
}
}
-->
Expected behavior
Fetch the shop with the params
Actual behavior
Throws eval error: unexpected character: 'Bad Request'
WorkAround
Works fine when fetching using ShopifyAPI::Clients::Rest::Admin
Any idea what could be wrong here?