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

UnhandledPromiseRejectionWarning #2

Open
jc21 opened this issue Sep 20, 2018 · 2 comments
Open

UnhandledPromiseRejectionWarning #2

jc21 opened this issue Sep 20, 2018 · 2 comments
Assignees

Comments

@jc21
Copy link

jc21 commented Sep 20, 2018

Nodejs version: v10.10.0
tmdb version: 0.2.0
OS: Centos 7

$ tmdb "Star Wars"
✖ Loading the list
(node:122252) UnhandledPromiseRejectionWarning: SyntaxError: Unexpected token < in JSON at position 0
    at parse (<anonymous>)
    at got.then.response (/usr/lib/node_modules/tmdb-cli/index.js:219:16)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:122252) 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(). (rejection id: 1)
(node:122252) [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.

The crux of the problem is probably the response. I think the project would benefit by having another flag to debug the requests and responses to the api as well.

@ildave
Copy link

ildave commented Sep 24, 2019

I have the same issue, using the same tmdb version.

Maybe something changed in the API response?

@rawnly
Copy link
Owner

rawnly commented Sep 26, 2019

I'll investigate as soon as I can

@rawnly rawnly self-assigned this Sep 26, 2019
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

3 participants