Skip to content

Cannot obtain socket from WSGI environment. #2571

@anand-lyn

Description

@anand-lyn

Question 1: What is the problem?
I used flask flask-sock to set up a websocket service and passenger was able to run it successfully, but the client would report an error when establishing a websocket connection, and the http request was normal
RuntimeError: Cannot obtain socket from WSGI environment.
image

Question 2: Passenger version and integration mode:
open source 6.0.22 standalone

Question 3: OS or Linux distro, platform (including version):
FreeBSD 14.1-RELEASE

Question 4: Passenger installation method:
source tarball

Question 5: Your app's programming language (including any version managers) and framework (including versions):
Python3.11, flask, flask-sock

Question 6: Are you using a PaaS and/or containerization? If so which one?
No

Question 7: Anything else about your setup that we should know?
No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions