Skip to content

Conversation

@ameio
Copy link

@ameio ameio commented Apr 16, 2024

Error face when used smart_api.generateToken

(node:9820) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'refreshToken' of undefined
at E:\project\stock\pms-music\node_modules\smartapi-javascript\lib\smartapi-connect.js:222:41
at processTicksAndRejections (internal/process/task_queues.js:95:5)
(Use node --trace-warnings ... to show where the warning was created)
(node:9820) 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:9820) [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.
Audio played successfully.

=====================

this error we face when try to use generatToken function
so i update that function and please approved my PR after check code review

@ameio
Copy link
Author

ameio commented Apr 16, 2024

@anurag-amx @moizm89
please check when you get some time

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

Successfully merging this pull request may close these issues.

1 participant