You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% node p.js
(node:1180) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
An error happened: T [Error]
at u (/Users/razishaban/node_modules/@polygon.io/client-js/dist/main.cjs:1:1802)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 'ERROR',
request_id: 'bfeffa1a352ccd1d57303d10ca6002cb'
}
An error happened: T [Error]
at u (/Users/razishaban/node_modules/@polygon.io/client-js/dist/main.cjs:1:1802)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 'ERROR',
request_id: 'd0470057a66487a9cd9a93c957cb6246'
}
An error happened: T [Error]
at u (/Users/razishaban/node_modules/@polygon.io/client-js/dist/main.cjs:1:1802)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 'ERROR',
request_id: '7c98b5a795d7ad732cb5e3822da65ff7'
}
An error happened: T [Error]
at u (/Users/razishaban/node_modules/@polygon.io/client-js/dist/main.cjs:1:1802)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
status: 'ERROR',
request_id: 'ceffc82fc1a9dcffe5b6197c09a64ece'
}
It would be lovely if "T [Error]" offered some kind of ... error type . or message. as it is, the error was No api key, but how could I know?
noting that when I do add the ApiKey, I get 400s and 403... hmm...
NB: having tried 4 of the tutorials now, none of them seem to be "working as-is" with the beginner (Free) api key.
The text was updated successfully, but these errors were encountered:
I'll update the tutorials on the website to match since they have drifted over time. All the repos should be correct. On this repo, and the client-go, and client-python repos, can you enable tracing via https://github.com/polygon-io/client-go/tree/master and that will show you all the errors. It's the same concept but different syntax for each repo.
Also, what you're likely bumping up against is the 5 api call rate limit for the free tier.
However, according to the error response I am seeing in Postman, the correct field name to use is error
{
"status": "ERROR",
"request_id": "34f62761c946c5c8592b0fb35a6e156a",
"error": "You've exceeded the maximum requests per minute, please wait or upgrade your subscription to continue. https://polygon.io/pricing"
}
Also, it would have been extremely helpful to have the HTTP response status code passed into StructuredError too.
(all of the above copy-paste from https://polygon.io/blog/javascript-stock-market-data)
It would be lovely if "T [Error]" offered some kind of ... error type . or message. as it is, the error was No api key, but how could I know?
noting that when I do add the ApiKey, I get 400s and 403... hmm...
NB: having tried 4 of the tutorials now, none of them seem to be "working as-is" with the beginner (Free) api key.
The text was updated successfully, but these errors were encountered: