From 179b73d5e553fdd14f6486cfe348b91616d849d1 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 4 May 2023 14:17:36 +0200 Subject: [PATCH 1/3] :bug: fix: improve error message --- src/apis/jina_cloud.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 9684f9a..3255ebc 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -164,10 +164,10 @@ def deploy_on_jcloud(executor_name, microservice_path): time.sleep(5) except SystemExit as e: raise SystemExit(f''' -Looks like your free credits ran out. -Please add payment information to your account and try again. -Visit https://cloud.jina.ai/ - ''') from e +Looks like something went wrong in the generation and we didn't catch it. +Please, create an issue here: https://github.com/jina-ai/gptdeploy/issues/new/choose +And add details on the microservice you are trying to create. +''') from e if i == 2: raise Exception(''' Could not deploy on Jina Cloud. From af2fa8ea7a0e8055fe240d3824fa105292c81016 Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 4 May 2023 14:18:29 +0200 Subject: [PATCH 2/3] :bug: fix: improve error message --- src/apis/jina_cloud.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 3255ebc..8628ae4 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -166,7 +166,8 @@ def deploy_on_jcloud(executor_name, microservice_path): raise SystemExit(f''' Looks like something went wrong in the generation and we didn't catch it. Please, create an issue here: https://github.com/jina-ai/gptdeploy/issues/new/choose -And add details on the microservice you are trying to create. +nd add details on the microservice you are trying to create. +In the meantime, you can upgrade your GPT Deploy version, if not using latest, and try again. ''') from e if i == 2: raise Exception(''' From 8aadb2127704d63489dfd3ac3106425cde52359b Mon Sep 17 00:00:00 2001 From: Joschka Braun Date: Thu, 4 May 2023 14:50:35 +0200 Subject: [PATCH 3/3] :bug: fix: improve error message --- src/apis/jina_cloud.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/apis/jina_cloud.py b/src/apis/jina_cloud.py index 8628ae4..8c4b780 100644 --- a/src/apis/jina_cloud.py +++ b/src/apis/jina_cloud.py @@ -164,10 +164,11 @@ def deploy_on_jcloud(executor_name, microservice_path): time.sleep(5) except SystemExit as e: raise SystemExit(f''' -Looks like something went wrong in the generation and we didn't catch it. -Please, create an issue here: https://github.com/jina-ai/gptdeploy/issues/new/choose -nd add details on the microservice you are trying to create. -In the meantime, you can upgrade your GPT Deploy version, if not using latest, and try again. +Looks like you either ran out of credits or something went wrong in the generation and we didn't catch it. +To check if you ran out of credits, please go to https://cloud.jina.ai. +If you have credits left, please create an issue here https://github.com/jina-ai/gptdeploy/issues/new/choose +and add details on the microservice you are trying to create. +In that case, you can upgrade your GPT Deploy version, if not using latest, and try again. ''') from e if i == 2: raise Exception('''