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 ee54acb commit 5aa4e0bCopy full SHA for 5aa4e0b
src/mcp/client/auth.py
@@ -308,6 +308,7 @@ async def _register_client(self) -> httpx.Request | None:
308
async def _handle_registration_response(self, response: httpx.Response) -> None:
309
"""Handle registration response."""
310
if response.status_code not in (200, 201):
311
+ await response.aread()
312
raise OAuthRegistrationError(f"Registration failed: {response.status_code} {response.text}")
313
314
try:
0 commit comments