Sweekly Apps

Mobile Review Desk troubleshooting: error messages and fixes

Errors appear in a message box at the top of the app's setup page in Jira (Settings → Apps → App Review Desk), or in brackets after a store's line under Last run, as "(error: …)". If the page cannot load at all, the message shows in place of the page. Find the message below. Long messages are cut at 200 characters, and any part of a saved key in a message is replaced by ***. For setup steps, see the help center.

Opening the setup page

MessageCauseFix
"only Jira administrators can change this app"The person using the page is not a Jira administrator, or the check could not be made.Ask a Jira administrator to open the page, or to give you Jira admin rights. Reload the page if you are an admin.

Saving settings

MessageCauseFix
"project key must be 2 to 10 letters or digits, starting with a letter"Project key is empty or not a valid Jira project key.Enter the key shown in the project's work item keys, for example MOB for MOB-12.
"work type id must be a number"Work type id is empty, or holds a name such as "Task" instead of its id.Open the work type in Jira's settings and copy the number from the address bar.
"at most 10 labels"More than 10 labels in Labels (space separated).Keep 10 or fewer.
"label "…" must be one word of at most 255 characters"One label is longer than 255 characters.Shorten it.

Saving and testing credentials

These come from Save credentials, Test app-store and Test google-play. The key and package name messages can also show under Last run when the hourly run uses the keys.

MessageCauseFix
"secret "…" is longer than 20000 characters"The pasted value is far longer than any real key.Paste only the contents of the one file the field asks for.
"set … first"You clicked a Test button before all of that store's credentials were saved. The name shown is the missing field: apple-issuer-id, apple-key-id, apple-private-key, apple-app-id, google-service-account or google-package-name.Fill in that field, click Save credentials, then test again.
"the Apple app ID must be the number shown in App Store Connect, App Information (Apple ID)"The Apple ID field holds something other than the app's number, such as a bundle ID.Copy the Apple ID number from App Store Connect, App Information, and save it again.
"The App Store Connect private key (.p8) is not a private key (it must start with -----BEGIN PRIVATE KEY-----)"The private key field does not hold the contents of a .p8 file.Open the .p8 file in a text editor, copy all of it, including the BEGIN and END lines, and save it again.
"The App Store Connect private key (.p8) could not be read; paste the whole file again"Part of the key is missing or damaged.Paste the whole file again.
"the App Store Connect key must be an EC (.p8) key"The key pasted is another kind of private key.Use the .p8 file downloaded from App Store Connect for this key ID.
"the service-account key is not JSON; paste the whole downloaded .json file"The Google field does not hold valid JSON, often because only part of the file was copied.Open the .json key file, copy all of it and save it again. If it keeps happening, write to support@sweekly.app.
"the JSON is not a service-account key (type service_account with client_email and private_key)"The JSON is another kind of Google file, not a service-account key.Create and download a JSON key for the service account, then paste that file.
"The service-account private key is not a private key (it must start with -----BEGIN PRIVATE KEY-----)"The private_key inside the JSON file is missing or changed.Paste the unedited file again.
"The service-account private key could not be read; paste the whole file again"The key inside the JSON is damaged.Paste the whole file again.
"the service-account key must be an RSA key"The key inside the JSON is not the kind Google issues for service accounts.Download a new JSON key for the service account.
"the package name must look like com.example.app"The package name field holds something else, such as the app's name or a store link.Enter the package name only, for example com.example.app.

Answers from Apple and Google

MessageCauseFix
"App Store Connect: HTTP … (…)"App Store Connect refused the request. The number is the HTTP status; the text in brackets, when there is one, is Apple's own message.Check that the issuer ID, key ID and private key belong to the same active key, that the key has the Customer Support role or higher, and that the Apple ID is the app's. Save them again and click Test app-store.
"Google sign-in: HTTP … (…)"Google refused the sign-in with the service-account key. The text in brackets, when there is one, is Google's own message.Create a new JSON key for the service account, paste it and click Test google-play.
"Google sign-in: no access token in the answer"Google's sign-in answered without a token.Try again later. If it keeps happening, email us.
"Google Play: HTTP … (…)"The Google Play Developer API refused the request. The text in brackets, when there is one, is Google's own message.In Play Console, give the service account access to the app with the permissions to view app information and reply to reviews. Check the package name, then click Test google-play.
"App Store Connect: answer is not JSON" or "Google Play: answer is not JSON" or "Google sign-in: answer is not JSON"The service sent an unexpected answer, often during an outage.Wait for the next hourly run. If it keeps happening, write to support@sweekly.app.
"App Store Connect returned a next link on another host"Apple's answer pointed to a server outside App Store Connect's API, so the app stopped rather than send your key there.Wait for the next run. If it keeps happening, email us with the message.

Creating work items in Jira

MessageCauseFix
"Jira create failed: HTTP …"Jira refused to create the work item, for example because the project key does not exist or the work type id is not one of that project's work types.Check Project key and Work type id, click Save settings, then try Import sample data to check. If it keeps happening, write to support@sweekly.app.
"Jira comment failed: HTTP …"Jira refused to add the comment for an edited Google Play review, for example because the work item was deleted or moved.No action is needed for a deleted work item. If other comments fail too, email us. If it keeps happening, write to support@sweekly.app.

Sample data

MessageCauseFix
"choose a project and a work type on the admin page first"Import sample data was clicked before the project key and work type id were saved.Fill in Where work items go, click Save settings, then import again.
"a sync is running; try again in a few minutes"An hourly run or an earlier import is still working.Wait a few minutes and click again.
"All sample reviews are already imported."Not an error: both sample steps are done, so nothing new is created.None. After Delete all data, the sample starts over.

Last run

MessageCauseFix
"No run yet. The first run starts within an hour of setup."No run has finished on your site yet. The hourly run does nothing until a project key is saved, and it runs only while Atlassian reports the app as licensed on your site.Save the settings and wait up to an hour.
"… (skipped: credentials missing)"At least one credential of that store is not set.Set all of that store's credentials, or ignore it if you don't use that store.
"… (more next run)"The run reached its time limit with more reviews waiting.None. The next hourly run continues.
"… (error: …)"That store's part of the run stopped with the message in brackets. The other store still ran.Look up the message in the tables above.

Deleting data

MessageCauseFix
"type DELETE to confirm"The confirmation field does not hold exactly DELETE.Type DELETE in capitals and click Delete all data again.
"Part of the data is deleted. Click again to finish."There was more stored data than one click can delete in time.Click Delete all data again until it says "All app data deleted."

Still stuck?

Email support@sweekly.app with your Jira site address (for example yourcompany.atlassian.net) and the exact message text. Never send passwords, private keys or service-account files.

Mobile Review Desk for Jira, by Sweekly Apps LLC