Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runTestAndWait() often causes 429 Too Many Requests errors #197

Open
rejhgadellaabsl opened this issue Sep 30, 2024 · 3 comments
Open

runTestAndWait() often causes 429 Too Many Requests errors #197

rejhgadellaabsl opened this issue Sep 30, 2024 · 3 comments

Comments

@rejhgadellaabsl
Copy link

I noticed that runTestAndWait() has recently started to throw 429 errors. It seems to be caused by the polling the function performs.

Related: I tried to set a high number for the pollResults option (we used the default, which shouldn't cause 429 either imo :)), but it doesn't seem to do anything, the status updates (e.g., Waiting at the front of the queue...) are printed at the same-ish interval regardless of what I configure.

wpt.runTestAndWait( url, {
  location: 'gce-europe-west4',
  connectivity: 'Cable',
  runs: 1,
  firstViewOnly: true,
  keepOriginalUserAgent: true,
  pollResults: 30,
  timeout: 120,
  lighthouse: false,
})
Testing is in progress, please be patient
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Waiting at the front of the queue...
Test Started 5 seconds ago
Test Started 19 seconds ago
Error
    at Object.<anonymous> (/home/ubuntu/git/bsl-sites/bsl-speedtestmonitor/node_modules/webpagetest/lib/helper.js:213:25)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
    at Module.load (node:internal/modules/cjs/loader:1288:32)
    at Module._load (node:internal/modules/cjs/loader:1104:12)
    at Module.require (node:internal/modules/cjs/loader:1311:19)
    at require (node:internal/modules/helpers:179:18)
    at Object.<anonymous> (/home/ubuntu/git/bsl-sites/bsl-speedtestmonitor/node_modules/webpagetest/lib/webpagetest.js:14:12)
    at Module._compile (node:internal/modules/cjs/loader:1469:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
  name: 'WPTAPIError',
  code: 429,
  message: 'Too Many Requests'
}
@AatibMeer
Copy link

Hello there,

This looks more like a support issue. I would suggest logging a ticket with WebPageTest support at [email protected]. When submitting your ticket, please include the following information:

  • IP Address
  • User Agent
  • Time when the issue occurred
  • Endpoint called

Additionally, please confirm if you are passing the key in the headers.

@xdevnull
Copy link

xdevnull commented Oct 1, 2024

I have the same issue. It might be related to this recent changes catchpoint/terraform-provider-catchpoint@0d40632

@rejhgadellaabsl
Copy link
Author

@AatibMeer I missed your reply. I've just reached out to support. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants