App is not becoming available

I’m building an application like Loveable, where I have to spin up and down apps and machines with user code.

Now I’ve ran into an issue that I haven’t been able to resolve:

I’ve got a backend, that creates an app, assigns a shared ip v4 and creates a machine for the app, that runs my docker container.

If I use the Postman to run the request everything spins up just fine and the app is almost immediately available.

If however execute the exact same request (even copied the code from Postman) from my nextjs project, the app spins up, ip gets assigned, machine gets created and everything looks exactly the same in the dashboard, but the app is not becoming available through the hostname / fly dev domain.

The apps and machines are identical and the logs are the same.

Is there any logical explanation for this behaviour?

Thanks so much!

Are your new machines (created by the Next.js app) visible in your dashboard?

Also, I wonder if there is a delay of DNS names being registered. Can you leave the new machine running and it eventually becomes available under the fly.dev domain, or does it not ever become available? If the latter, can you show some info here e.g. flyctl ip list in case we can spot something that is wrong?

At face value, that is odd and doesn’t make any sense. Perhaps there’s some little detail that’s missing? You might want to create a min repro for the fly folks to investigate.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.