Topic on Talk:Parsoid

Resolving Parsoid URI to local file rather than going through the public domainname

8
Summary by Arlolra

User disappeared

62.181.223.54 (talkcontribs)

Hi, I was just wondering.

Is it possible to configure the URI setting in config.yaml to point to the API locally, rather than using the public address. Parsoid and MediaWiki are both installed on the same machine.

I've been having issues with VisualEditor getting stuck loading, only to time out.

When checking the cmd I get an error saying API Request Failed. Sometimes I also get the error Unacceptable profile string: text/html

I'm running it all on a Windows Server 2012 R2

Arlolra (talkcontribs)

Yes, it's fine to configure a local host.

62.181.223.54 (talkcontribs)

I am unable to correctly parse the string so that it manages to find the API file locally.

http://localhost resolves to nothing so I can't point to the api file that way and I cannot use the file:// path to point to it either, since I receive and error that it is an unsupported format.

Do I need to set up a new IIS Site that points to the same location as the wiki so that I may use http://localhost/api.php?

Arlolra (talkcontribs)

Yes

62.181.223.54 (talkcontribs)

It worked, but unfortunately it did not resolve the issue. Thank you Arlolra regardless.

Arlolra (talkcontribs)

The cycle of a request generally looks like,

VE (browser) -> MediaWiki API > Parsoid > MediaWiki API (at this point, Parsoid makes some calls back to the MediaWiki API for various bits of information, like config, image info, etc.)

There's a potential for deadlocks if your server doesn't support some level of concurrency, but I'm not sure that's happening in this case.

Can you get Parsoid to render a page, independent of VE? Try something like,

curl http://localhost:8000/localhost/v3/page/html/Main_Page

(or, a variation on that based on your setup.)

AslanFrench (talkcontribs)

@Arlolra I am having similar issues. I've logged a topic above. When I run the curl command you list I get back the same error that I get when I try to use the VE ui on my web browser client. Curl error (7), connection refused. What exactly does this mean and how can I fix it?

Arlolra (talkcontribs)

Let's use the other thread