Replies: 2 comments 3 replies
-
Hi, The address is not controlled by falcon in any way. The same code results in the same error when using a function as the app: from wsgiref.simple_server import make_server
def app(env, start)->list[bytes]:
start('200 ok', [])
return [b'hi there']
if __name__ == '__main__':
s = make_server('::', 8000, app)
s.serve_forever() I'm not sure how you can specify an ipv6 when using simple_server |
Beta Was this translation helpful? Give feedback.
3 replies
-
Thanks for the advice! Anyway, as I said, it's a complex service and the backend around it, so switching to gunicorn wouldn't be that straightforward in terms of quickness to a solution. I might try to configure it as @CaselIT proposed. I'll close the discussion since I don't expect anything else here. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I've been using falcon3.1.1 and trying to start the server on an IPv6 machine. Whatever I've tried, starting the server listening on all interfaces ('::'), or providing the actually address of the NI, it always immediately fails to start with the socket.gaierror and an "Address family for hostname not supported" exception message.
Here's the full stack trace;
It's enough to take the WSGI Quickstart example and provide the '::' Ipv6 address for starting the server, but anyways here's the CP of the full code.
Am I missing something here ? Does falcon library expose the possibility to configure address_family to something like "socket.AF_INET6".
Also, when trying to start it on a specific address and using the python's socket API to get that address' info, the "socket.getaddrinfo" call is successful, returning something like this;
But starting the server on that same IP just won't work.
Beta Was this translation helpful? Give feedback.
All reactions