Skip to content

PromiseRejection #9

Description

@X-G-Y

(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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions