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

Necrobrowser config: SyntaxError: Unexpected token #99

Open
saakkaas opened this issue Apr 16, 2024 · 3 comments
Open

Necrobrowser config: SyntaxError: Unexpected token #99

saakkaas opened this issue Apr 16, 2024 · 3 comments

Comments

@saakkaas
Copy link

saakkaas commented Apr 16, 2024

When it comes triggering necrobrowser ... :

SyntaxError: Unexpected token p in JSON at position 0
   at JSON.parse (<anonymous>)
   at createStrictSyntaxError (/home/user/muraena/necrobrowser/node_modules/body-parser/lib/types/json.js:169:10)
   at parse (/home/user/muraena/necrobrowser/node_modules/body-parser/lib/types/json.js:86:15)
   at /home/user/muraena/necrobrowser/node_modules/body-parser/lib/read.js:128:18
   at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
   at invokeCallback (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:238:16)
   at done (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:227:7)
   at IncomingMessage.onEnd (/home/user/muraena/necrobrowser/node_modules/raw-body/index.js:287:7)
   at IncomingMessage.emit (node:events:517:28)
   at endReadableNT (node:internal/streams/readable:1400:12)
   at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

But there is no problem when I send request with curl.

@ohpe
Copy link
Member

ohpe commented Apr 16, 2024

That syntaxerror seems related to something wrong in the JSON file. Could you also post here the JSON configuration, please.

@ohpe ohpe changed the title Necrobrowser doesn't work Necrobrowser config: SyntaxError: Unexpected token Apr 16, 2024
@saakkaas
Copy link
Author

Hello dear, which json ?

@vhespanha
Copy link

@saakkaas

Necrobrowser is configured through a (json) file called profile, see:

profile

Once you show us the contents of this file, we may be able to help further debugging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants