Hello, really need help on this.
We have our unlisted app installed on several shops.
Even if we have our token installed, the permissions seem to expire or something similar.
After the installation we automatically get all the products and orders, this action works every time.
After a while we start receiving a 403 Forbidden.
We still able to get the Shop information through Rest API.
We have access as contributors and the app still installed, the active permission I can see from the shop admin are correct.
No idea where the problem is coming from, this is the response.
name: 'HTTPError',
host: undefined,
hostname: 'the-hundred-shoes.myshopify.com',
method: 'GET',
path: '/admin/products/count.json',
protocol: 'https:',
url: undefined,
statusCode: 403,
statusMessage: 'Forbidden',
headers:
{ server: 'nginx',
date: 'Tue, 09 Apr 2019 11:30:03 GMT',
'content-type': 'text/html',
'transfer-encoding': 'chunked',
connection: 'close',
'x-sorting-hat-podid': '92',
'x-sorting-hat-shopid': '4478468189',
vary: 'Accept-Encoding',
'referrer-policy': 'origin-when-cross-origin',
'x-frame-options': 'DENY',
'x-shopid': '4478468189',
'x-shardid': '92',
'x-stats-userid': '27587117149',
'x-stats-apiclientid': '2791127',
'x-stats-apipermissionid': '103209238621',
http_x_shopify_shop_api_call_limit: '1/40',
'x-shopify-shop-api-call-limit': '1/40',
'strict-transport-security': 'max-age=7889238',
'x-request-id': '940f9bc7-09f1-4512-909b-5fbfa25d1170',
'x-shopify-stage': 'production',
'content-security-policy',
'default-src \'self\' data: blob: \'unsafe-inline\' \'unsafe-eval\' https://* shopify-pos://*; block-all-mixed-content; child-src \'self\' https://* shopify-pos://*; connect-src \'self\' wss://* https://*; frame-ancestors \'none\'; img-src \'self\' data: blob: https:; script-src https://cdn.shopify.com https://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://dme0ih8comzn4.cloudfront.net https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com \'self\' \'unsafe-inline\' \'unsafe-eval\'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=count&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=a80db825-2a7c-42ff-b51c-68fe976d1fd0',
'x-content-type-options': 'nosniff',
'x-download-options': 'noopen',
'x-permitted-cross-domain-policies': 'none',
'x-xss-protection':
'1; mode=block; report=/xss-report?source%5Baction%5D=count&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=a80db825-2a7c-42ff-b51c-68fe976d1fd0',
'x-dc': 'ash,gcp-us-central1',
'content-encoding': 'gzip' } }
^C
How are you making the call in the first place?
Feels like you're trying to hit the endpoint via the browser directly - not the Admin API - and your account just doesn't have access to product data. Some more insights into _how_ you're making this call could help the forum members here help you.
Just regular API calls to different resources, products, orders, customers, checkouts. Those all randomly responded with 403. But looks like there has not been any of those since 2019-04-13 16:56:28 +0300. It was an issue for several days.
User | Count |
---|---|
13 | |
12 | |
7 | |
4 | |
4 |