I’m debugging Remote.php but it’s still not clear why the request goes in timeout.
Of course the endpoint is reachable without any problem via browser.
Tried to play around with the remote.ca options, different return statement in the route etc.
Sorry what do you mean with that?
I mentioned the Remote.php class because it’s there where the timeout occurs, since that is the place where a curl call is made.
Just fixed the issue with the timeout by switching from PHP CLI to Valet.
For what I understand, the PHP CLI running environment doesn’t allow the creation of a second PHP process, but this is what a curl request actually makes.
Unfortunately, this doesn’t end here.
Now I have a different error:
Kirby\Query\Query::factory(): Argument #1 ($query) must be of type string, null given, called in /Users/abc/projects/Website/kirby/src/Option/OptionsApi.php on line 113 in file: /Users/abc/projects/Website/kirby/src/Query/Query.php line: 54
Now, if I debug OptionsApi.php I see that the values are actually fetched from the endpoint specified by the “url” property in the YAML file, since I find them in the $data variable in the resolve() method.
For some reason however, $this->query in the resolve() method is null, and this is a problem because Query::factory() is called and expects a string as the first argument.
Any idea?
It seems like the reason for this last problem is that I’m not using the latest Kirby version! Using an empty “query:” property in the YAML file patches it.
Hope this can be helpful for others.