Socketio Error: code 5: Unsupported version

Does anyone know the source of this message and how to resolve it? XHRGET
https://mysite.myurl.com/socket.io/?EIO=3&transport=polling&t=PB6SpxS
[HTTP/1.1 400 Bad Request 11ms]
code 5
message “Unsupported protocol version”. I’ve tried everything including allow_cors: “*” and it’s not working. I’ve checked the socketio version in server frappe-framework@ /home/ubuntu/frappe-bench/apps/frappe
└── socket.io@4.7.2 and client onepageapp@0.0.0 /home/ubuntu/frappe-bench/apps/myapp/onepageapp
├─┬ frappe-ui@0.1.70
│ └── socket.io-client@4.7.2 deduped
└── socket.io-client@4.7.2 and they’re the same. I don’t know how else to debug this. The app is in production. Will appreciate any help.

Ok. i found the problem. Doppio was importing socket.io@2.5.0 and frappe had installed 4.7.2. I commented out doppio’s import and used the version installed in my app which is same as frappe’s version and this fixed the issue.

1 Like