This question about Installation of Foswiki: Asked

Parse error - invalid json-rpc request at configure during bootstrap

Apache 2, Ubuntu 18.04 AWS EC2.
Install foswiki 2.1.6. Visit configure the first time and have red bubble with error

"

Error

Parse error - invalid json-rpc request: JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this)

"

From browser console:

request:

curl 'http://my.url/bin/jsonrpc/configure' -H 'Connection: keep-alive' -H 'Accept: application/json, text/javascript, /; q=0.01' -H 'Origin: http://my.url' -H 'X-Requested-With: XMLHttpRequest ' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit /537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.87 Chrome/80.0.3987.87 Safari/537.36' -H 'Content-Type: application/json' -H 'Referer: http://my.url/bin/configure?VIEWPATH=' -H 'Accept-Language: ru-RU,ru;q=0.9,en-US;q=0.8,en;q=0.7' -H 'Cookie: FOSWIKI_UPDATESPLUGIN=; FOSWIKISID=9ec79a5f10626fb8d2a55cd40f03317a; FOSWIKISTRIKEONE=1b9b1da00de57d79d6cf4f642d33fadd' --data-binary '{"jsonrpc":"2.0","method":"getspec","params":{"get":{"parent":{"depth":0}},"depth":0},"id":"iLoad-schema_0"}' --compressed --insecure

response:

{"jsonrpc":"2.0","error":{"message":"Parse error - invalid json-rpc request: JSON text must be an object or array (but found number, string, true, false or null, use allow_nonref to allow this)","code":-32700}}

  • foswiki-configure-error.png:
    foswiki-configure-error.png

-- PaulTanaskov - 28 Feb 2020

Can you run a docker containre there? Try timlegge/docker-foswiki and see if you get the same results. I suspect you are encountering a missing perl module or incomapibility

-- TimothyLegge - 28 Feb 2020

Appears related to Tasks.Item14024. Looks like it might provide some solutions also.

-- Main.LynnwoodBrown - 28 Feb 2020 - 22:27

You right, thanks. Item14024 about the same problem.

-- PaulTanaskov - 02 Mar 2020
 

QuestionForm edit

Subject Installation of Foswiki
Extension
Version Foswiki 2.1.6
Status Asked
Related Topics
I Attachment Action Size Date Who Comment
foswiki-configure-error.pngpng foswiki-configure-error.png manage 87 K 28 Feb 2020 - 16:33 PaulTanaskov  
Topic revision: r4 - 02 Mar 2020, PaulTanaskov
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy