We’ve found an error in production where critical code that sets up a user’s default metadata/wallet in the After hook for AuthenticateEmail/Apple/Custom produces the error “timeout: context canceled”.
I’ve read other posts (Error : "Context canceled" and "Context deadline exceed" and Error encountered context canceled while in goroutine) explaining that if a client leaves before the request is complete, it will cancel database operations to reduce load. This makes sense if the work you’re doing has no side effects, but it’s dangerous otherwise. This behavior was a big surprise to our team.
Is there a way to disable this functionality or easily work around it in Lua?
- Versions: Nakama 3.10 (forked from 1d0527e0), Docker, nakama-godot (77ecd966)
- Server Framework Runtime language: Lua