-
-
Notifications
You must be signed in to change notification settings - Fork 149
Exception: Value of type null is not callable #244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Why are you passing |
These two are remnants of debugging: if I change to not pass
|
This app is basically a forwarding proxy, but waits in controller to calculate address of destination node, that is ready to take connection (hence periodic timer). |
@pczerkas The error message you're seeing looks familiar, same has been reported in reactphp/async#16. Maybe it could be the case that you use an
Loop::addTimer(0.5, React\Async\async(function () {
echo 'a';
React\Async\await(React\Promise\Timer\sleep(1.0));
echo 'c';
}));
Loop::addTimer(1.0, function () {
echo 'b';
});
// prints "a" at t=0.5s
// prints "b" at t=1.0s
// prints "c" at t=1.5s It's not explicitly written, but you can't use blocking code inside a promise or timer function. The same goes for You can read all about it in the reactphp/async readme. Does this help? |
@SimonFrings thanks! Yes, I've seen that issue, and also tried this ealier:
In the meantine I've downgraded I guess I'll leave this configuration as it is. |
I guess I am having the same type of issue. react/async is 4.3.0 $response = await(
$this->browser
->withResponseBuffer(1024 * 1024 * 32)
->withTimeout($timeout)
->request($method, $url, $headers, $body)
);
if (!$response) {
$this->tracerService->incScalar('http_error');
throw new Exception('Empty response');
} I am getting Empty response Exception frequently and the following error in await:
|
Uh oh!
There was an error while loading. Please reload this page.
This looks like something in PHP core. Does anyone have working configuration of PHP/ReactPHP versions, where such things work?
Single process, no forking app. Only crashes, when using 2 or more clients.
PHP 8.1.13 (also happens on 8.1.10)
"name": "react/async",
"version": "v4.0.0",
"name": "react/cache",
"version": "v1.1.1",
"name": "react/child-process",
"version": "v0.6.5",
"name": "react/dns",
"version": "v1.10.0",
"name": "react/event-loop",
"version": "v1.3.0",
"name": "react/http",
"version": "v1.8.0",
"name": "react/promise",
"version": "v2.9.0",
"name": "react/promise-stream",
"version": "v1.5.0",
"name": "react/promise-timer",
"version": "v1.9.0",
"name": "react/socket",
"version": "v1.12.0",
"name": "react/stream",
"version": "v1.2.0",
The text was updated successfully, but these errors were encountered: