Topic on Extension talk:VisualEditor

Ciciban (talkcontribs)

Dear All,
I have installed this extension and now I am getting the following error report when I try to open a nonempty page with the VisualEditor:

Fehler beim Laden der Daten vom Server: apierror-visualeditor-docserver-http-error: (curl error: 7) Couldn't connect to server. Soll der Vorgang erneut durchgeführt werden?

I can open nonempty pages vith the VE, but then I get this error report when I am trying to save the edit:

Etwas ist schief gelaufen
(curl error: 7) Couldn't connect to server

Parsoid/Troubleshooting doesn't help me a lot until now: e.g., what would be the positive result of

curl http://your-mediawiki-server/api.php

(http://localhost/mediawiki/api.php in my case)
and what the negative? and why should I set this URL in [my] /etc/mediawiki/parsoid/settings.js if I'm supposed not to have that file, but configure parsoid via /etc/mediawiki/parsoid/config.yaml (where I have set that URI btw)?
Thank you in advance!
Ciciban (talk) 16:03, 21 January 2018 (UTC)

46.219.43.18 (talkcontribs)

uninstall and purge parsoid

install parsoid again

Ciciban (talkcontribs)

Thanks for your answer.
It did not change anything :(
Yours, Ciciban (talk) 13:28, 22 January 2018 (UTC)

Ciciban (talkcontribs)

So, let's start from scratch with Parsoid/Troubleshooting.

My api.php is http://localhost/mediawiki/api.php, which is linked to /var/lib/mediawiki-1.30.0/api.php.
Consequently, I changed /etc/mediawiki/parsoid/config.yaml (btw, locate delivers two other files with this name: /usr/lib/parsoid/node_modules/service-runner/config.yaml and /usr/lib/parsoid/src/tests/mocha/test.config.yaml):
# uri: 'http://localhost/w/api.php'
uri: 'http://localhost/mediawiki/api.php'

curl -L http://localhost:8142/localhost/v3/page/ html/Hauptseite>curl.htm
leaves a html-page similar to my main page in curl.htm, plus it returns

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  
Current 
                                 Dload  Upload   Total   Spent    Left  
Speed 
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--
100    62  100    62    0     0     79      0 --:--:-- --:--:-- --:--:--
100    62  100    62    0     0     79      0 --:--:-- --:--:-- --:--:--
    79 
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--
100  6140  100  6140    0     0   2970      0  0:00:02  0:00:02 --:--:--
 21928
 

to my console. Is this, in the sense of Parsoid/Troubleshooting, the positive or the negative result, resp., what does this exactly mean?

Thank you in advance for your answers.
Yours, Ciciban (talk) 10:11, 24 January 2018 (UTC)

AslanFrench (talkcontribs)

I am also having this trouble @Ciciban Did you ever find a fix?

Ciciban (talkcontribs)
Mariuszjluther (talkcontribs)

I had this problem under Win10 as log as I haven't startet manually the parsoid server:

C:\Users\User\node_modules\parsoid> node bin/server.js

After that it worked.

Ciciban (talkcontribs)

O.k., Maybe I have just found a lead:

curl http://localhost/mediawiki/api.php

returns the source of api.php

curl https://localhost/mediawiki/api.php

returns: curl: (7) Failed to connect to localhost port 443: Verbindungsaufbau abgelehnt

So, how can I contact my localhost via https (and, could this solve my problem)?

Thank you in advance for your help.
Yours, Ciciban (talk) 11:38, 13 April 2020 (UTC)

Ciciban (talkcontribs)

I hoped I could solve the issue with mkcert localhost, but I still cannot reach api.php via https, neither via curl nor in the browser, whereas it does work both ways via http.
Any hints?
Yours, Ciciban (talk) 15:46, 13 April 2020 (UTC)

Ciciban (talkcontribs)
Reply to "curl error: 7"