Skip to content
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

Uncaught AssertionError thrown in event loop callback encountered during recycling request #376

Open
sxllllll opened this issue Feb 18, 2025 · 1 comment

Comments

@sxllllll
Copy link

// Used http connection pool
$builder = new HttpClientBuilder();
$builder = $builder->usingPool(ConnectionLimitingPool::byAuthority(1500,new DefaultConnectionFactory()));

An http request is used in a while loop task. This exception occurs more than ten minutes after the task is executed. What is the cause?

Specific error information
Uncaught AssertionError thrown in event loop callback Amp\Http\Client\Connection\Internal\Http2ConnectionProcessor::Amp\Http\Client\Connection\Internal{closure} defined in /var/www/hiwaifu_php/vendor/amphp/http-client/src/Connection/Internal/Http2ConnectionProcessor.php:1580; use Revolt\EventLoop::setErrorHandler() to gracefully handle such exceptions: Stream watcher invoked after stream closed

@kelunik
Copy link
Member

kelunik commented Feb 19, 2025

If sounds like you're reusing existing request instances. If so, avoid doing that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants