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" but only sometimes #8

Open
randall-coding opened this issue Nov 16, 2023 · 2 comments
Open

"Unexpected end of JSON input" but only sometimes #8

randall-coding opened this issue Nov 16, 2023 · 2 comments

Comments

@randall-coding
Copy link

randall-coding commented Nov 16, 2023

When I first ran docker-compose up the install page would load up fine. It worked at first today also, but now it fails with a javascript error:
"Unexpected end of JSON input"

Full output:

Uncaught SyntaxError: Unexpected end of JSON input
at JSON.parse ()
at e.value (bundle.js:16:4483)
at e.value (bundle.js:16:5836)
at Object. (bundle.js:16:51110)
at C (bundle.js:1:7843)
at r (bundle.js:1:559)
at Object. (bundle.js:21:4116)
at C (bundle.js:1:7843)
at r (bundle.js:1:559)
at Object. (bundle.js:16:27479)

And the line in question on bundle.js is:

        }, {
            key: "getDepartments",
            value: function() {
                return JSON.parse(this.getItem("departments"))  #ERROR HERE
            }
        }, {

I'm currently trying this on Vivaldi browser.

Restarting with docker-compose up yields the same result.

@randall-coding
Copy link
Author

randall-coding commented Nov 16, 2023

Trying a new browser fixes the issue at first. Refreshing the page yields the same error again.

The solution right now is to start a new browser window in private mode.

@switux
Copy link

switux commented Nov 21, 2024

Same problem here, except that it is systematic. However, switching to private mode browsing, as suggested (thanks btw, saved my day ...) solves the issue.

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