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

PromiseRejection #9

Open
X-G-Y opened this issue Oct 17, 2024 · 0 comments
Open

PromiseRejection #9

X-G-Y opened this issue Oct 17, 2024 · 0 comments

Comments

@X-G-Y
Copy link

X-G-Y commented Oct 17, 2024

(base) PS C:\Users\26761\fitbit\fitbit-app-versa4-main> yarn debug
yarn run v1.22.22
$ fitbit
(node:15592) UnhandledPromiseRejectionWarning: FetchError: request to https://api.fitbit.com/1/user/-/profile.json failed, reason: connect ETIMEDOUT 34.98.96.53:443
at ClientRequest. (C:\Users\26761\fitbit\fitbit-app-versa4-main\node_modules\node-fetch\lib\index.js:1501:11)
at ClientRequest.emit (events.js:400:28)
at TLSSocket.socketErrorListener (_http_client.js:475:9)
at TLSSocket.emit (events.js:400:28)
at emitErrorNT (internal/streams/destroy.js:106:8)
at emitErrorCloseNT (internal/streams/destroy.js:74:3)
at processTicksAndRejections (internal/process/task_queues.js:82:21)
(Use node --trace-warnings ... to show where the warning was created)
(node:15592) 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: 1)
(node:15592) [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.
Done in 22.92s.

When i click in https://api.fitbit.com/1/user/-/profile.json, it seems like oauth2 is expired. NEED HELP!

@X-G-Y X-G-Y closed this as completed Oct 20, 2024
@X-G-Y X-G-Y reopened this Oct 23, 2024
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

1 participant