Skip to content

Commit

Permalink
Try fix for "Too many packets in payload" from engineio
Browse files Browse the repository at this point in the history
  • Loading branch information
indy-independence committed Aug 29, 2023
1 parent 5a606ae commit 02e4dc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/cnaas_nms/api/app.py
Expand Up @@ -3,6 +3,7 @@
import sys
from typing import Optional

from engineio.payload import Payload
from flask import Flask, jsonify, request
from flask_cors import CORS
from flask_jwt_extended import JWTManager, decode_token
Expand Down Expand Up @@ -84,6 +85,7 @@ def handle_error(self, e):
resources={r"/api/*": {"origins": "*"}},
expose_headers=["Content-Type", "Authorization", "X-Total-Count", "Link"],
)
Payload.max_decode_packets = 500
socketio = SocketIO(app, cors_allowed_origins="*")

if api_settings.JWT_ENABLED:
Expand Down

0 comments on commit 02e4dc2

Please sign in to comment.