I have reported a details explanation of the issue in this post.
However, after some thinking, I was wondering if this could be caused by Local.
I’ve tried connecting via SSH and:
- Ping to the domain: OK
-
wget
to the discovery URL: OK
This means to me that Local might not be the issue. However, I still want to ask here if there is anything that Local could block and cause the request to timeout when done via PHP.
For the lazy ones, the problem is that domain.tld/wp-json
works jusfinend when is done from a REST client, but not when done on PHP side with a $this->http->get( get_site_url() . '/wp-json', array( 'timeout' => 10) );
: in this case, I get a timeout error, no matter how long I set that timeout.