Topic on Project:Support desk

Error contacting the Parsoid/RESTBase server (HTTP 400)

7
KatastrophenKommando (talkcontribs)

On the wiki https://wiki.hytalehub.com/Main_Page the Visual Editor isn't working. Its saying "Error contacting the Parsoid/RESTBase server (HTTP 400)". When i try to create an userpage/page which isnt in the main article space it's working but you can't save it (--> same error).

The api says:

{ "error": { "code": "apierror-visualeditor-docserver-http", "info": "Error contacting the Parsoid/RESTBase server (HTTP 400)", "*": "See https://wiki.hytalehub.com/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes." } }

How can i fix it? Its on a ngnix server

Thank you! :)

5.193.68.230 (talkcontribs)

It sounds like you are running your wiki behind cloudflare.

try this settings within your server block,

        location /rest.php/

        {

                try_files $uri $uri/ /rest.php?$query_string;

        }

KatastrophenKommando (talkcontribs)

Hey, thank you! ^^ I putted it on the end:

EntryPoint::main();

{

                try_files $uri $uri/ /rest.php?$query_string;

        }

Sadly its not working or should i put it before EntryPoint?

5.193.68.230 (talkcontribs)

you need to add this code to /var/nginx/sites-available/yoursite.conf

5.193.68.230 (talkcontribs)

sorry, /etc/nginx/sites-available/yoursite.conf

KatastrophenKommando (talkcontribs)

Hey :) Thank you, i have sadly currently no root account to edit it so i have to ask the admin

Reply to "Error contacting the Parsoid/RESTBase server (HTTP 400)"