facing `UnhandledPromiseRejectionWarning: Error: Request failed with status code 403` on making API requests.
See original GitHub issueλ starred_search --user 'link-' --find 'es6' -d
(node:12837) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/home/greyhound/.nvm/versions/node/v14.15.0/lib/node_modules/starred_search/bin/starred_search:1212:15)
at settle (/home/greyhound/.nvm/versions/node/v14.15.0/lib/node_modules/starred_search/bin/starred_search:1471:12)
at IncomingMessage.handleStreamEnd (/home/greyhound/.nvm/versions/node/v14.15.0/lib/node_modules/starred_search/bin/starred_search:598:11)
at IncomingMessage.emit (events.js:327:22)
at endReadableNT (_stream_readable.js:1327:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:12837) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:12837) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
λ starred_search --version
0.1.10
λ node --version
v14.15.0
I installed using npm install starred_search -g
The operating system is Ubuntu 20.04 LTS in WSL1.
I’m not a nodejs person, but these warnings/errors are not fetching any results, yields 403. README didn’t say anything about adding keys. Is there anything i’m doing wrong?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
request failed with status code 403(forbidden) in axios.get
status code 403 means that you are not authorized. You could either have entered a wrong api key or maybe your process.env does...
Read more >(node:5088) UnhandledPromiseRejectionWarning: Error ...
EDIT: The 403 (forbidden) code indicates that you're not allowed to use the API. Either you have to authenticate yourself first or they ......
Read more >axios 403 bad request | The AI Search Engine You Control
AxiosError: Request failed with status code 403 indicates that the server is denying the request due to an authorization issue [1]. This can...
Read more >How do I troubleshoot HTTP 403 errors from API Gateway?
An HTTP 403 response code means that a client is forbidden from accessing a valid URL. The server understands the request, ...
Read more >Request failed with status code 500-Reactjs - appsloveworld
Coding example for the question ReactJS/Axios: Unhandled Rejection (Error): Request failed with status code 500-Reactjs.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@greed2411 I suspect this is related to caching, I will keep testing until I’m able to replicate.
Thank you for reporting this @greed2411 - Let me try to reproduce the error