Closed taoeffect closed 3 months ago
@taoeffect Are you able to share the URLs from the network log when you get this error?
It looks like this issue was caused by a fork in the chain, as state.contracts[identityContractID].HEAD
has a value that doesn't exist as a hash on the server.
This could have been caused while copying the database from one server to the other.
So to elaborate, the theory that @corrideat came up is that my client performed some sort of operation on the identity contract, i.e. some opcode, whether a contract action or a key operation. This updated my local client state and specifically the value for recentHEAD
here:
const { HEAD: recentHEAD, height: recentHeight } = state.contracts[contractID] || {}
Then when the database from production got copied over to staging, this resulted in a fork between my local client state and the server's, resulting in a 404 because recentHEAD
was wrong when looking up eventsAfter
.
Problem
The staging server represents a period copy of the production server.
I was logged in to it at one point and then somehow got logged out. When I tried logging back in I got these errors:
Note: I can login in a private window, suggesting that this is an issue with the local vuex and/or chelonia state getting out of sync with the server and causing some sort of weird problem that shouldn't ever happen.
Solution
Diagnose and fix.