question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RequestLimitExceeded exceptions in error logs

See original GitHub issue

I’m seeing a large number of RequestLimitExceeded exceptions in the logs. Here is an example:

Trace: RequestLimitExceeded: Request limit exceeded.
    at Request.extractError (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/services/ec2.js:50:35)
    at Request.callListeners (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/sequential_executor.js:106:20)
    at Request.emit (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/sequential_executor.js:78:10)
    at Request.emit (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/request.js:688:14)
    at Request.transition (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/request.js:22:10)
    at AcceptorStateMachine.runTo (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/state_machine.js:14:12)
    at /home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/state_machine.js:26:10
    at Request.<anonymous> (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/request.js:38:9)
    at Request.<anonymous> (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/request.js:690:12)
    at Request.callListeners (/home/vbarsegyan/former2/cli/node_modules/aws-sdk/lib/sequential_executor.js:116:18) {
  code: 'RequestLimitExceeded',
  time: 2020-08-19T10:01:39.095Z,
  requestId: 'e617cd80-eee2-4021-a1db-7e97ab982bb4',
  statusCode: 503,
  retryable: true
}

There is some inconsistency in the number resources that are being generated at every run. I ran node /former2/cli/main.js generate --region us-east-1 --output-terraform /tmp/backup.tf once a day for 6 days in a row and the files sizes varied as follows: 1.4MB, 459KB, 526KB, 556KB, 529KB, 440KB. Is this inconsistency somehow tied to the AWS request limit? If so, would it be possible to limit the number asynchronous API requests such that all resources are captured at every run?

Reference: https://github.com/iann0036/former2/issues/86 (thanks again!)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
iann0036commented, Aug 31, 2020

Great. Thanks again for your help!

0reactions
Vardominatorcommented, Aug 31, 2020

Hey @iann0036,

Everything works like a charm! Feel free to close this ticket.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Prevent RequestLimitExceeded errors when launching ... - AWS
A RequestLimitExceeded error for Amazon EC2 APIs usually indicates request rate limiting or resource rate limiting API throttling.
Read more >
RequestLimitExceeded (503) Unable to parse ... - GitHub
The error happens in the background worker pool handling the async responses to the calls. And the exception bubbles all the way up,...
Read more >
Salesforce Error: REQUEST_LIMIT_EXCEEDED
If you are receiving this error, it means that you have exceeded your Salesforce API request limit. This usually occurs when you make...
Read more >
Salesforce API Request Limit Exceeded - DocuSign Support
In DocuSign Connect logs: Salesforce login exception: REQUEST_LIMIT_EXCEEDED: TotalRequests Limit exceeded. ERROR: Invalid Salesforce ...
Read more >
Error handling — Boto3 Docs 1.14.0 documentation
Proper logging/messaging - Catching errors and exceptions means you can log ... This is a general exception when an error response is provided...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found