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

Issue running simple example #5

Open
bspallholtz opened this issue Aug 20, 2021 · 1 comment
Open

Issue running simple example #5

bspallholtz opened this issue Aug 20, 2021 · 1 comment

Comments

@bspallholtz
Copy link

bspallholtz commented Aug 20, 2021

My index.js const tipranksApi = require('tipranks-api-v2'); tipranksApi.getPriceTargets('MU').then(result => console.log(result)); tipranksApi.getNewsSentimentData('MU').then(result => console.log(result)); tipranksApi.getTrendingStocks().then(trending => console.log(trending));

Output:
node:internal/process/promises:246
triggerUncaughtException(err, true /* fromPromise */);
^

[UnhandledPromiseRejection: 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(). The promise rejected with the reason "undefined".] {
code: 'ERR_UNHANDLED_REJECTION'
}`

Output returns several stocks instead of just MU specified in index.js

@ckrillen
Copy link

I'm getting the same error message and I'm using the node --version
v16.15.1

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

2 participants