Skip to content

Commit 45429e6

Browse files
committed
fix log message
1 parent 03d0430 commit 45429e6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

mcp_proxy_for_aws/proxy.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,11 @@ async def _connect(self):
111111
logger.warning('encountered runtime error, try force disconnect.')
112112
await self._disconnect(force=True)
113113
except Exception:
114-
logger.warning('encountered another error, raising the previous runtime error.')
114+
# _disconnect awaits on the session_task,
115+
# which raises the timeout error that caused the client session to be terminated.
116+
# the error is ignored as long as the counter is force set to 0.
117+
# TODO: investigate how timeout error is handled by fastmcp and httpx
118+
logger.exception('encountered another error, ignoring.')
115119
return await self._connect()
116120

117121
async def __aexit__(self, exc_type, exc_val, exc_tb):

0 commit comments

Comments
 (0)