From 2468992352845aba4b1af6c6d4d232af9db806fe Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Fri, 7 Mar 2025 15:38:22 -0600 Subject: [PATCH 1/3] Add logs url on failure --- rsconnect/api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsconnect/api.py b/rsconnect/api.py index 6d29eb9d..abe4598a 100644 --- a/rsconnect/api.py +++ b/rsconnect/api.py @@ -354,8 +354,8 @@ def app_access(self, app_guid: str) -> None: if self.is_app_failed_response(response): raise RSConnectException( "Could not access the deployed content. " - + "The app might not have started successfully. " - + "Visit it in Connect to view the logs." + + "The app might not have started successfully." + + f"\n\tFor more information: {self.app_config(app_guid)['logs_url']}" ) def bundle_download(self, content_guid: str, bundle_id: str) -> HTTPResponse: From bf9ade854a7b4ed483fa6033fb0cab1a490aaae4 Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Fri, 7 Mar 2025 16:03:10 -0600 Subject: [PATCH 2/3] tab space, not tab --- rsconnect/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsconnect/api.py b/rsconnect/api.py index abe4598a..e311fb95 100644 --- a/rsconnect/api.py +++ b/rsconnect/api.py @@ -355,7 +355,7 @@ def app_access(self, app_guid: str) -> None: raise RSConnectException( "Could not access the deployed content. " + "The app might not have started successfully." - + f"\n\tFor more information: {self.app_config(app_guid)['logs_url']}" + + f"\n\t For more information: {self.app_config(app_guid)['logs_url']}" ) def bundle_download(self, content_guid: str, bundle_id: str) -> HTTPResponse: From 635a71eeae141a9d5134f201320dfc801e20d540 Mon Sep 17 00:00:00 2001 From: Jonathan Keane Date: Mon, 10 Mar 2025 11:13:35 -0500 Subject: [PATCH 3/3] avoid the possible KeyError --- rsconnect/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsconnect/api.py b/rsconnect/api.py index e311fb95..adf01b3e 100644 --- a/rsconnect/api.py +++ b/rsconnect/api.py @@ -355,7 +355,7 @@ def app_access(self, app_guid: str) -> None: raise RSConnectException( "Could not access the deployed content. " + "The app might not have started successfully." - + f"\n\t For more information: {self.app_config(app_guid)['logs_url']}" + + f"\n\t For more information: {self.app_config(app_guid).get('logs_url')}" ) def bundle_download(self, content_guid: str, bundle_id: str) -> HTTPResponse: