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

Unexpected toke u in JSON at position 0 #13

Open
avinashseth opened this issue Jan 26, 2020 · 13 comments
Open

Unexpected toke u in JSON at position 0 #13

avinashseth opened this issue Jan 26, 2020 · 13 comments

Comments

@avinashseth
Copy link

Hi

I followed this article and followed step by step process but still getting this error in the end

image

node version v11.5.0
npm version 6.7.0

@kastov
Copy link

kastov commented Jan 28, 2020

Yep, I have the same!

@o4oren
Copy link
Owner

o4oren commented Jan 28, 2020 via email

@kastov
Copy link

kastov commented Jan 29, 2020

Well, its working in the cloud... try playing with the jwt secret ...

I tried, the same error.
What I should do?

@o4oren
Copy link
Owner

o4oren commented Jan 31, 2020 via email

@gcleaves
Copy link
Contributor

Hi, I'm getting the same error and the link you reference is not available. Any other tips you can offer? I'm actually using Docker and it looks like ahem.js reads environment variables, is that right. Will using env variables solve the problem? I'd rather use a json file anyway so please let us know the correct way to configure. Thanks!

@o4oren
Copy link
Owner

o4oren commented Jun 11, 2020 via email

@gcleaves
Copy link
Contributor

I've got the Docker container working using environment variables. But I get the JSON error when not using variables. Does ahem.js read properties.json from somewhere? Where would I need to put the file?

To answer your question, the (test) token is: ui6 380 yTqC1w . It works fine as an env variable, so I don't think that's the problem. I think my problem is that my properties.json is not being found.

Cheers!

@o4oren
Copy link
Owner

o4oren commented Jun 11, 2020 via email

@gcleaves
Copy link
Contributor

I'll try documenting my step-by-step later so you can see what I might of done wrong. I did have an .env file but maybe in the wrong place.

@o4oren
Copy link
Owner

o4oren commented Jun 12, 2020 via email

@gcleaves
Copy link
Contributor

I see the error of my ways, thanks.

@o4oren
Copy link
Owner

o4oren commented Jul 22, 2020 via email

@me-rgb
Copy link

me-rgb commented Jan 19, 2022

Hey I'm getting this error, what should I do? I am a python programmer who does basic things, so if I have no idea what I'm taking about please don't instantly start throwing code at me :)

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

5 participants