httpx.ConnectError: [Errno -2] Name or service not known using Docker Supabase Image #2967
-
Hello, I'm using a Docker container for data processing which interacts with another Docker database container. The database container is a variety of Supabase images (an open source DB). As data is processed it is written to this Postgres / Supabase database. Frankly I'm not sure what's happening, I have zero understanding of how the httpx package works. The only other issue which mentions this is here: #1311 But that issue is related to some experimental Docker Ipv6 address feature. Which I don't believe is the case here (using ipv4). Environment: Error:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
You're getting a DNS error. You could sanity check by pointing There's not much we can do about that, although we could take a look at how to improve our error messaging throughout. (It'd be great if all our network errors gave a message a little closer to how browsers report these issues. If anyone's interested in tackling that I think there'd be some really good work to be done here.) |
Beta Was this translation helpful? Give feedback.
-
Thanks for the reply. It turned out my error was somehow related to having |
Beta Was this translation helpful? Give feedback.
-
If anyone coming here but not finding the answer, check your supabse tables or check status of your project, sometimes when supabse api cant find it shows this sanity check to be false |
Beta Was this translation helpful? Give feedback.
You're getting a DNS error. You could sanity check by pointing
requests
orcurl
or a browser at the same URL and ensuring you're also seeing this behaviour in that case too.There's not much we can do about that, although we could take a look at how to improve our error messaging throughout.
(It'd be great if all our network errors gave a message a little closer to how browsers report these issues. If anyone's interested in tackling that I think there'd be some really good work to be done here.)