https://prefect.io logo
Title
i

Iain Dillingham

07/22/2020, 10:09 AM
Hi community. I'm trying to get Prefect server (v0.12.5) working locally but GraphQL can't connect to Postgres. There are a couple of other questions in this channel that describe a similar issue, but both relate to config.toml. I haven't written config.toml and I haven't set any
PREFECT__
environment variables, so I'm using defaults.
When I run
prefect backend server && prefect server start
the images are pulled and containers set up. The logs indicate that GraphQL (
hasura_1
) cant' connect to Postgres. However, later, Apollo (
apollo_1
) is able to build the schema and start the server.
In the UI, I see...
Would you suggest writing config.toml? Is this a Docker networking issue? I'd appreciate any pointers. Thanks!
Well, that's strange. I've just checked the UI in Chrome and everything's fine; not in Firefox (78.0.2), however. So, neither a configuration nor a Docker issue, apparently.
j

josh

07/22/2020, 11:25 AM
Ah that’s weird, so just to clarify, it is working for you in Chrome but not Firefox?
i

Iain Dillingham

07/22/2020, 11:27 AM
That's correct, yes. So, the underlying components are all working correctly: the UI, Postgres, Apollo, etc. But FF isn't connecting to GraphQL but Chrome is.
j

josh

07/22/2020, 11:30 AM
Interesting! It appears to be working for me in Firefox (Mac OSX Catalina)
i

Iain Dillingham

07/22/2020, 11:34 AM
Lucky you! 🙂 For me, FF's network tab is displaying 200s for the requests to the GraphQL endpoint but "Attempting to connect..." in the API Status.
j

josh

07/22/2020, 11:35 AM
Would you open an issue on the repo with some information about this and your system?
i

Iain Dillingham

07/22/2020, 11:35 AM
Will do 👍
Thanks for your quick response on this, @josh Hope the issue helps.