From a39edbb17e2a801f06a0b2194110ad60f3d98983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Barbet?= Date: Mon, 23 May 2022 11:52:21 +0000 Subject: [PATCH 1/2] docs: add explanation regarding appcenter token --- .../react-native/manual-setup/codepush.mdx | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/platforms/react-native/manual-setup/codepush.mdx b/src/platforms/react-native/manual-setup/codepush.mdx index 092f79918a0c42..48139c527041ac 100644 --- a/src/platforms/react-native/manual-setup/codepush.mdx +++ b/src/platforms/react-native/manual-setup/codepush.mdx @@ -81,4 +81,17 @@ If you don't want to use the automatically computed release format, you will nee sentry-cli react-native appcenter {APP} ios ./build/CodePush --deployment {DEPLOYMENT} --dist {DIST} --release-name {RELEASE_NAME} ``` + + +Make sure to export the `APPCENTER_ACCESS_TOKEN` in your environment in order to run the `appcenter` commands above. Ohterwise you might get an empty error: + +```bash +error: Failed to load AppCenter deployment history + caused by: +``` + +You can find more information about this in the [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/#logging-in). + + + If you still have issues with CodePush source maps, you can refer to [Source Maps for Other Platforms](/platforms/react-native/sourcemaps/) to manually bundle and upload source maps to Sentry. From 610a6f4f8e53c0ce4de382c52b39bd8d8f53fc73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Barbet?= Date: Tue, 24 May 2022 13:22:46 +0000 Subject: [PATCH 2/2] docs: address feedback + add new error message --- src/platforms/react-native/manual-setup/codepush.mdx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/platforms/react-native/manual-setup/codepush.mdx b/src/platforms/react-native/manual-setup/codepush.mdx index 48139c527041ac..661e7e1daddd5d 100644 --- a/src/platforms/react-native/manual-setup/codepush.mdx +++ b/src/platforms/react-native/manual-setup/codepush.mdx @@ -83,14 +83,13 @@ sentry-cli react-native appcenter {APP} ios ./build/CodePush --deployment {DEPLO -Make sure to export the `APPCENTER_ACCESS_TOKEN` in your environment in order to run the `appcenter` commands above. Ohterwise you might get an empty error: +Make sure to export the `APPCENTER_ACCESS_TOKEN` in your environment in order to run the `appcenter` commands above. Otherwise you will get the following error: ```bash -error: Failed to load AppCenter deployment history - caused by: +Command 'appcenter codepush deployment history' requires a logged in user. Use the 'appcenter login' command to log in. ``` -You can find more information about this in the [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/#logging-in). +You can find more information about this in the [AppCenter CLI](https://docs.microsoft.com/en-us/appcenter/cli/#logging-in) documentation.