Backend unreachable

My project works fine locally.
My db its hosted ouside and works fine too.

When running: reflex deploy i get the error:

Debug: Polling backend sidecar at https://rxh-prod-myapp.fly.dev/__reflex_hosting__/api/v1/greeter
Debug: Backend sidecar responded with: [Errno -2] Name or service not known
Debug: After 40 retries, backend sidecar is still not reachable. Likely the deployment was not successful.
Backend unreachable
Warning: Check for more logs in your App, using `reflex deployments logs myapp`

When run:

reflex deployments logs myapp

nothing happens.

The issue seems to be that in production the frontend cant reach the backend.

We are updating the whole hosting service in the next couple days should be fixed soon

1 Like

Still getting the same error.

I am experiencing a similar issue. I have deployed a basic web app with a third-party database, but I just see an toast error “An error occurred. 1. Contact the website administrator.” That’s not an error message I throw. I don’t see anything in the logs and the status shows the backend is unreachable.

I was just able to resolve my issues. I am not entirely sure the issue because there were no logs, but I removed a “loglevel” argument that I was passing to rx.App() (upgrading the cli version alerted me to this) and I had env=rx.Env.DEV that I was passing to rx.Config(). I also confirmed my database string was being passed properly. It’s not clear which resolved the issue, but wanted to share here if others come across a similar problem.