Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ec2 hosting flask #1189

Closed
siva1002 opened this issue May 19, 2023 · 1 comment
Closed

Ec2 hosting flask #1189

siva1002 opened this issue May 19, 2023 · 1 comment

Comments

@siva1002
Copy link

siva1002 commented May 19, 2023

HI;
I am new for socketio some socket request went for pending state in chrome(application running in aws ec2 instance),for development we used digital ocean it wasn't make the request in pending, the socket requests makes other api requests too pending because of server response dont know how to resolve this kindly guide me to fix the issue.
Thanks

below code is we used intiate flaskapp and flasksocketio
i can provide further more details if needed
#----------------
app = Flask(name)
app.config['SECRET_KEY'] = 'secret!'
sockio = SocketIO(app,cors_allowed_origins="*",message_queue="redis://default:lICb5DP6GTUsmDzjkpo8LdpRmpUtotWB@redis-19361.c305.ap-south-1-1.ec2.cloud.redislabs.com:19361")
CORS(app,supports_credentials=True)
app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False
app.config['SECURITY_PASSWORD_SALT']=os.getenv('SECURITY_PASSWORD_SALT')
if os.getenv('ENV')=='TEST':
app.config['SQLALCHEMY_DATABASE_URI'] =os.getenv('DB_URI_TEST')
else:
app.config['SQLALCHEMY_DATABASE_URI'] =os.getenv('DB_URI_PROD')

@miguelgrinberg
Copy link
Owner

Please do not write questions in the bug tracker of this project. You may want to consult the troubleshooting documentation to learn how to debug issues with Socket.IO. If you need help with your application, then once you have supporting information to provide, please open a discussion topic. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants