File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
services/web/server/src/simcore_service_webserver/projects/_controller Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 33import logging
44
55from aiohttp import web
6+ from common_library .user_messages import user_message
67from models_library .api_schemas_webserver .projects import ProjectGet
78from models_library .api_schemas_webserver .socketio import SocketIORoomStr
89from pydantic import BaseModel
@@ -121,8 +122,11 @@ async def open_project(request: web.Request) -> web.Response:
121122 ) as resource_registry :
122123 _socket_id = await resource_registry .get_socket_id ()
123124 if _socket_id is None :
124- raise web .HTTPBadRequest (
125- text = "Cannot open project without a socket_id, please refresh the page"
125+ raise web .HTTPUnprocessableEntity (
126+ text = user_message (
127+ "Data corruption detected: unable to identify your session (socket_id missing). "
128+ "Please refresh the page and try again. If the problem persists, contact support."
129+ )
126130 )
127131 sio = get_socket_server (request .app )
128132 sio .enter_room (
You can’t perform that action at this time.
0 commit comments