Application Search broken with unexpected non-whitespace character
See original GitHub issueI recently upgraded to release 8.23.1 from 8.22.1 and Application Search was broken with the following error. I attempted a re-install, but the issue has persisted, though I may not have been thorough enough in wiping previous config files and application data.
Relevant section from the debug log
2022-11-14T05:36:22.103Z error: Unexpected non-whitespace character after JSON at position 28825
SyntaxError: Unexpected non-whitespace character after JSON at position 28825
at JSON.parse (<anonymous>)
at C:\Program Files\ueli\resources\app.asar\bundle\main.js:8:803400
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
2022-11-14T05:36:22.104Z error: Unexpected non-whitespace character after JSON at position 10513
SyntaxError: Unexpected non-whitespace character after JSON at position 10513
at JSON.parse (<anonymous>)
at C:\Program Files\ueli\resources\app.asar\bundle\main.js:8:890725
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
Issue Analytics
- State:
- Created 10 months ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error "JSON parse unexpected non-whitespace character " in ...
At the moment when i edit the script, and delete/comment the line 'header('Content-type: application/json');', the results are correctly ...
Read more >Unexpected non-whitespace character after JSON at position ...
SyntaxError : Unexpected non-whitespace character after JSON at position 991 at JSON.parse (<anonymous>) at parse (C:\Program Files\Black ...
Read more >unexpected non-whitespace character after JSON data
unexpected non -whitespace character after JSON data ... I found one character '1' before the token. And make some error: And this affects...
Read more >JSON.parse: unexpected non-whitespace character after JS ...
Subscribe to this channel: https://bit.ly/SachiiOnlineAcademyIn this video I'm going to show you how to fix the error : JSON.parse: ...
Read more >Json.parse: unexpected non-whitespace character?
So use the debugger, and look at what is happening at each stage, and try to identify exactly what "non-whitespace character" is being ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This might be caused by a special character in a path or file name found by the Application Search plugin. To check this, please run the following command in a command window (cmd.exe):
This will create a file
applications.json
in the current directory. Now open this file with Visual Studio Code and press F8 (or click on Go -> Next Problem in the menu bar). The cursor should now jump to the position which causes the problem and show the reason. If you provide us with the details we should be able to fix this.Yep, opening it up in Visual Studio Code and the error is just
End of file expected
at the end of the json file.