Projection reset issues
enumag opened this issue · comments
Here I'm not really sure what's wrong. When trying reset for the first time I got this error:
In SyncProjectionsManager.php line 308:
[Symfony\Component\Debug\Exception\FatalThrowableError]
Return value of Prooph\EventStoreClient\Projections\SyncProjectionsManager::reset() must be of the type string, null returned
But I never saw it since. After that the reset method started failing because of timeouts. However the projection is always reset - much sooner than how long the command is blocking in fact. So it's like the client never receives a response but otherwise everything is ok? What's confusing me even more it that there are two different timeout errors:
With timeout set to 10000 I get this:
In DefaultClient.php line 401:
Allowed transfer timeout exceeded: 10000 ms
But with timeout set to 60000 I get this (though it doesn't take 60 seconds for this to appear):
In ProjectionsClient.php line 640:
Server returned 408 (Server was unable to handle request in time) for POST on http://127.0.0.1:2113/projection/$by_category/command/reset
If I set the timeout to 1000 and put a try { ... } catch (\Throwable $e) {}
to prevent blocking and suppress timeout exceptions then reset seems to work as intended.
I need to investigate this.
why closed?
See #64
It's obsolete now.