@devries-cameron20 / composio Mirror · read-only / commits / d63276551
Fork 0

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

Mirrored from https://github.com/Camo67/composio.git

Synced Nov 21, 07:15 UTC

fix(docs): handle migration helper HTTP protocol failures

Shashwat Singh committed Oct 28, 2026 at 21:07 UTC d63276551e9a3204777ba02ee80872cbf139362d
1 file changed +2 -1
docs/public/assets/migrations/migrate_no_auth_to_instant.py
+2 -1
@@ -5,6 +5,7 @@ Default: print a plan, with no network requests. --apply reads COMPOSIO_API_KEY,
5 verifies current tool metadata, and creates one Session. No provider tool runs.
6 """
7 import argparse
8 +import http.client
9 import json
10 import os
11 import re
@@ -66,7 +67,7 @@ def request(method, path, key, body=None):
67 if method == "POST" and (error.code >= 500 or error.code in (408, 429)):
68 raise RuntimeError(f"POST returned HTTP {error.code}. Session creation outcome is unknown. Check your project before trying again. No automatic retry was made.") from None
69 raise RuntimeError(f"{method} returned HTTP {error.code}. Check the project and permissions; no retry was made.") from None
69 - except (OSError, TimeoutError, json.JSONDecodeError, UnicodeError):
70 + except (OSError, TimeoutError, http.client.HTTPException, json.JSONDecodeError, UnicodeError):
71 message = "Session creation outcome is unknown. Check your project before trying again." if method == "POST" else "Metadata could not be read. No Session was created."
72 raise RuntimeError(message + " No automatic retry was made.") from None
73