I really need this issue solved. The POST request is being proxied to the primary node sometimes, and then other times it isn’t. It tries to POST to a read replica. What’s going on?
I have an epic-stack (remix) app using litefs to manage my sqlite db in multiple regions. Everything appears fine, but about every other POST request is erroring with “attempt to write a readonly database”. I’ve scoured the internet, proxy docs (Built-in HTTP Proxy · Fly Docs ), and still can’t understand what’s wrong with my setup. Again, every other request succeeds, but the others throw this error. Logs show the same POST request failing the first time and then succeeding the second time. What…
Solved! Look in the comments section of the linked topic above.
system
Closed
June 7, 2024, 8:38pm
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.