Closed npaton closed 9 months ago
@aliciamchen I've created this new ticket to track your issue. I've found where it's not being handled properly. The rejection itself might be harmless, but not handling might be breaking other state. So I'm adding code to handle the error gracefully, and extra logs to see if the error is actually a problem or not.
When you see this error, does everything break, or does the experiment keep on going?
Thank you! Sometimes it breaks but most of the time it keeps on going. Also, sometimes I see the error very frequently (like every minute) and sometimes I don't see it frequently at all.
Thank you for the details!
What I think it might be is a race condition between the natural end of the stage (the stage times out) and all players submitting the stage. Would that make sense in your case? Meaning:
There are a couple of other potential cases where this might happen. In any case, this type of scenario was not well handled. I am fixing that now, and I am adding copious logs to be able to see the issue if it appears again.
Actually, I can see that you do have submit on your stages. As for the other condition, I can imagine it happening. So this generally does make sense. Either way, I'm locking all this down, so it shouldn't be a problem again.
I released a new version 1.8.10 with the fix. I couldn't easily reproduce it, but I think it should work. Please reopen this ticket if you're still seeing this transition step: invalid state
issue.
Thank you! I updated to 1.8.10
and haven't been getting the transition step: invalid state
warning anymore.
One thing that it did give me a few times, however, that I haven't seen before, is:
21:47:38.630 WRN failed load: [GraphQL] transition step: invalid transition: from state mismatch with previous state
I've also been getting conn write timeout
and write buffer full, abandoning connection
, but it doesn't seem to crash the experiment.
With the new version, I ended up getting a different error that crashed the experiment: #460
Is there an existing issue for this?
What happened?
Occasionally,
failed load: [GraphQL] transition step: invalid state
is thrown as an unhandled promise rejection.Steps To Reproduce
Unclear when this happens.
Empirica Version
What OS are you seeing the problem on?
No response
What browser are you seeing the problem on?
No response
Relevant log output