We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03d0430 commit 45429e6Copy full SHA for 45429e6
mcp_proxy_for_aws/proxy.py
@@ -111,7 +111,11 @@ async def _connect(self):
111
logger.warning('encountered runtime error, try force disconnect.')
112
await self._disconnect(force=True)
113
except Exception:
114
- logger.warning('encountered another error, raising the previous runtime error.')
+ # _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.')
119
return await self._connect()
120
121
async def __aexit__(self, exc_type, exc_val, exc_tb):
0 commit comments