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

SyntaxError: Unexpected token #9

Open
ghost opened this issue Nov 27, 2020 · 7 comments
Open

SyntaxError: Unexpected token #9

ghost opened this issue Nov 27, 2020 · 7 comments

Comments

@ghost
Copy link

ghost commented Nov 27, 2020

Hi,
I have the following issue after start on an arch based manajro system.

SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at Request._callback (/home/USER/Projekte/cryptocurrency-cli/index.js:41:19) at Request.self.callback (/home/USER/Projekte/cryptocurrency-cli/node_modules/request/request.js:185:22) at Request.emit (node:events:376:20) at Request.<anonymous> (/home/USER/Projekte/cryptocurrency-cli/node_modules/request/request.js:1154:10) at Request.emit (node:events:376:20) at IncomingMessage.<anonymous> (/home/USER/Projekte/cryptocurrency-cli/node_modules/request/request.js:1076:12) at Object.onceWrapper (node:events:482:28) at IncomingMessage.emit (node:events:388:22) at endReadableNT (node:internal/streams/readable:1294:12) npm ERR! code ELIFECYCLE npm ERR! errno 1

@testbughub
Copy link

+1

1 similar comment
@piyoki
Copy link

piyoki commented May 15, 2021

+1

@pepa65
Copy link

pepa65 commented Sep 7, 2021

It seems this app is no longer working??

@pepa65
Copy link

pepa65 commented Sep 7, 2021

@christ0ph3r Any thought why things are no longer working?

@1deadpixl
Copy link

Looks like coinmarketcap.com changed their API and the app needs to be updated.
The endpoint that first gets requested now returns a 410 error (after returning a Cloudflare bot wall which also needs to handled):

{
"code": "410 Gone",
"reason": "We no longer serving this endpoint here"
}

I found this tool via the GH search and it looks like it will work great for what I need.
Perhaps someone has the time to investigate the issue and update the API interface?
I'll submit a PR if I get a chance to work on it.

@salamwaddah
Copy link

@christ0ph3r any plan to update this?

@Boyquotes
Copy link

Hello all,

You can test this pull request who fix this

#10

Or clone my repo directly if you prefer( more simple )
https://github.com/Boyquotes/cryptocurrency-cli

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

6 participants