Skip to content

Commit 1bf5501

Browse files
committed
Enhance error handling in model deployment URL retrieval
1 parent 74885a2 commit 1bf5501

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

roboflow/core/workspace.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,13 @@ def _upload_zip(
619619
try:
620620
res.raise_for_status()
621621
except Exception as e:
622-
print(f"An error occured when getting the model deployment URL: {e}")
622+
error_message = str(e)
623+
status_code = str(res.status_code)
624+
625+
print("\n\033[91m❌ ERROR\033[0m: Failed to get model deployment URL")
626+
print("\033[93mDetails\033[0m:", error_message)
627+
print("\033[93mStatus\033[0m:", status_code)
628+
print(f"\033[93mResponse\033[0m:\n{res.text}\n")
623629
return
624630

625631
# Upload the model to the signed URL

0 commit comments

Comments
 (0)