How to resolve Rest API rate limit error in PHP curl?

How to resolve Rest API rate limit error in PHP curl?

hexonsoft
Shopify Partner
7 0 3

Hi, I am getting Exceed API rate limit error. This is the php curl output

HTTP/2 429
date: Fri, 06 Aug 2021 07:02:21 GMT
content-type: application/json; charset=utf-8
x-sorting-hat-podid: 149
referrer-policy: origin-when-cross-origin
x-frame-options: DENY
x-shardid: 149
x-stats-userid:
x-stats-apiclientid: 5614347
x-stats-apipermissionid: 331610882198
http_x_shopify_shop_api_call_limit: 1/40
x-shopify-shop-api-call-limit: 1/40
strict-transport-security: max-age=7889238
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://cdn.shopifycdn.net https://checkout.shopifycs.com https://api.stripe.com https://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.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=update&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=3032e845-a078-4e7f-8848-34046b2dff08
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=update&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Forders&source%5Bsection%5D=admin_api&source%5Buuid%5D=3032e845-a078-4e7f-8848-34046b2dff08
x-dc: gcp-europe-west1,gcp-us-east1,gcp-us-east1
x-request-id: 3032e845-a078-4e7f-8848-34046b2dff08
cf-cache-status: DYNAMIC
expect-ct: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
server: cloudflare
cf-ray: 67a66630cbce4de2-FRA
alt-svc: h3-27=":443"; ma=86400, h3-28=":443"; ma=86400, h3-29=":443"; ma=86400, h3=":443"; ma=86400

{"errors":"Exceeded API rate limit, please try again in a minute. Upgrade to a paid account to remove this limit."}



This is Rate Limit Header:
http_x_shopify_shop_api_call_limit: 1/40
x-shopify-shop-api-call-limit: 1/40

Still it shows:
{"errors":"Exceeded API rate limit, please try again in a minute. Upgrade to a paid account to remove this limit."}

Please someone help me in this issue.

Reply 1 (1)

Joyen
Shopify Partner
4 0 0

I'm getting the exact same error and the support at shopify are clueless...It's a bug i guess as I only do 4 api calls in 10s which should be very far from the rate limit....
I really have no clue how to get through this, if someone knows ?