Cli: Error: API Request rate limit surpassed for application

Created on 5 Jan 2019  ยท  21Comments  ยท  Source: netlify/cli

I'm running into this problem:

โœ” Finished hashing 10849 files
- CDN diffing files...
โœ” CDN requesting 2218 files
- Uploading 2218 files
 โ€บ   Error: API Request rate limit surpassed for application

That was the first deploy today, so it's not an issue of deploying too frequently. It seems that the CLI tool doesn't limit itself to match the API rate limits?

Environment:

owid@terra3:~$ /mnt/volume-nyc1-01/owid/mispytest-grapher-code//node_modules/.bin/netlify --version
netlify-cli/2.6.0 linux-x64 node-v10.14.2
high-priority

Most helpful comment

Issue is solved in master, expect a release tomorrow morning.

All 21 comments

Thanks for the report, @mispy . This is not unique to you, and our developers will be taking a look as soon as they can

I have same problem, that's why i moved firebase for now

Just an update - we have identified the problem and have a proposed solution that we'll implement soon. For the meantime, you can successfully deploy with our old (still functional and supported) CLI netlifyctl: https://github.com/netlify/netlifyctl

We'll report here when we have a fix.

I also have the same problem:
screenshot 2019-01-11 at 12 53 36

Hope there is a fix soon.

Working on a fix for this now.

Issue is solved in master, expect a release tomorrow morning.

๐ŸŽ‰[email protected]๐ŸŽ‰

Please give that version and shot and let me know how it goes. Sorry it took so long to get out, I was traveling this last week.

I have the same problem, with version 2.6.2:

$ npm install -g netlify-cli
/usr/local/bin/ntl -> /usr/local/lib/node_modules/netlify-cli/bin/run
/usr/local/bin/netlify -> /usr/local/lib/node_modules/netlify-cli/bin/run
+ [email protected]
added 292 packages from 167 contributors in 13.138s

$ netlify deploy --site=$NETLIFY_SITE --auth=$NETLIFY_AUTH_TOKEN --dir=dist/ --prod
Deploy path: /builds/denkmal/denkmal-website/dist
Deploying to live site URL...
- Hashing files...
โœ” Finished hashing 748 files
- CDN diffing files...
โœ” CDN requesting 718 files
- Uploading 721 files
 โ€บ   Error: API Request rate limit surpassed for application

Second run succeeded with 202 files uploaded. So I guess the first run uploaded ~500 files before it errored.

Same problem as before here as well; able to upload about 500 files at the time;

Deploy path: /home/hebron/uctrl-hugo/public
Deploying to live site URL...
โœ” Finished hashing 3432 files
โœ” CDN requesting 1855 files
๐Ÿ•‘  (795/1856) Uploading img/parts/sized/ir-pir-sensor-qerk04-48.jpeg... โ€บ   Error: Uploaded file /img/parts/sized/kapton-tape-gold-qerxy4-96.jpeg did not match deploy
โžœ  uctrl-hugo git:(master) โœ— netlify deploy --dir=public --prod
JSONHTTPError: Too Many Requests
    at NetlifyAPI.getCurrentUser (/usr/lib/node_modules/netlify-cli/node_modules/netlify/src/open-api/index.js:152:15)
โžœ  uctrl-hugo git:(master) โœ— netlify deploy --dir=public --prodDeploy path: /home/hebron/uctrl-hugo/public
Deploying to live site URL...
โœ” Finished hashing 3432 files
โœ” CDN requesting 1074 files
* (433/1075) Uploading img/parts/sized/ac-adapter-zgvz5q-96.jpeg... โ€บ   Error: Uploaded file /img/parts/sized/air-pollution-sensor-r4dn8g-96.jpeg did not match deploy
- (433/1075) Uploading img/parts/sized/ac-adapter-zgvz5q-96.jpeg...%                                         
โžœ  uctrl-hugo git:(master) โœ— netlify deploy --dir=public --prod
JSONHTTPError: Too Many Requests
    at NetlifyAPI.getCurrentUser (/usr/lib/node_modules/netlify-cli/node_modules/netlify/src/open-api/index.js:152:15)
  netlify-cli/2.6.2 linux-x64 node-v11.6.0

Same problem using 2.6.3

 $ netlify deploy --dir dist/ -a $NETLIFY_TOKEN -s $NETLIFY_SITE_ID --prod
  Deploy path: /opt/atlassian/pipelines/agent/build/website/dist
  Deploying to live site url...
  - Hashing files...
  โœ” Finished hashing 3105 files
  - CDN diffing files...
  โœ” CDN requesting 3075 files
  - Uploading 3075 files
  โ€บ   Error: API Request rate limit surpassed for application

Reopening. @thomasjsn that problem was fixed in 2.6.3 although it still sounds like there is an open issue. I will investigate.

Testing with 10000 files.

I think I identified the issue. I'll work to get a fix out tomorrow.

Possible fix here, but I'm finding there are some unhandled / unexpected API responses that need more attention.
https://github.com/netlify/js-client/pull/33

More tomorrow.

Ok, releasing https://github.com/netlify/cli/issues/206 with a fix once it's green.

Give [email protected] a shot. I tested it with 10000+ file uploads. Rate limiting kicks in around every 500 uploads, with a 60 second delay (controlled by the API). This is kind of tedious, and I will be discussing it with our API team.

@bcomnes just a question - why do we have to use node 8.10 >= ? any particular reason?

Rate limit trigger was significantly increased, you should rarely see rate limits now.

Was this page helpful?
0 / 5 - 0 ratings