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 end of JSON input #5

Closed
logust79 opened this issue May 12, 2023 · 3 comments
Closed

unexpected end of JSON input #5

logust79 opened this issue May 12, 2023 · 3 comments

Comments

@logust79
Copy link

First of all, this project looks amazing! Thanks for all the good work.

However, I have this error when trying to visualise an example chart. When I pull up the console, I see this:
POST http://localhost:5173/api/vizchat 404 (Not Found)
Perhaps I have to run vizchat as a server in a separate instance?

@ObservedObserver
Copy link
Owner

ObservedObserver commented May 12, 2023

Try ‘vercel dev’, which runs both the api and front-end together.

@logust79
Copy link
Author

That works. Thank you!

@PFbHzsiF
Copy link

After a few try and error, the vercel dev is working. But I still get a different version of JSON error when click visualize.

Unexpected token 'F', "FetchError"... is not valid JSON

If I use npm run dev, I will get Unexpected end of JSON input or JSON.parse: unexpected end of data at line 1 column 1 of the JSON data.

This is really a great project. But I don't seems to have enough ability to selfhost it at this stage.

Would you mind give me a little bit more guide of how to solve these JSON errors?
And are you considering provide an official dockerfile like Rath project do?

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