fastlane: fastlane deliver: Potential server error received: 'Unexpected Error'
copied from #16621
Hey Guys, I am using azure devops and the AppStorePromote step uses fastlane. Does anyone know how to specify how to exclude the meta data in the yaml?
I am trying to implement the above:
upload_to_app_store(
skip_metadata: true,
skip_screenshots: true,
metadata_path: nil
)
with this step:
- task: AppStorePromote@1
inputs:
serviceEndpoint: 'Apple'
appIdentifier: 'com.xxx'
shouldAutoRelease: true
thanks!
_Originally posted by @danimal521 in https://github.com/fastlane/fastlane/issues/16621#issuecomment-645632550_
2020-06-17T21:13:43.5313560Z ##[section]Starting: AppStorePromote
2020-06-17T21:13:43.5323600Z ==============================================================================
2020-06-17T21:13:43.5324020Z Task : Apple App Store Promote
2020-06-17T21:13:43.5324380Z Description : Release a build from iTunes Connect to the Apple App Store
2020-06-17T21:13:43.5324720Z Version : 1.147.0
2020-06-17T21:13:43.5324990Z Author : Microsoft Corporation
2020-06-17T21:13:43.5325440Z Help : [More Information](https://marketplace.visualstudio.com/items?itemName=ms-vsclient.app-store)
2020-06-17T21:13:43.5325930Z ==============================================================================
2020-06-17T21:13:44.1215700Z 6bee70df-d608-4eda-aa8b-5033bfa2c84c exists true
2020-06-17T21:13:44.1258150Z [command]/usr/local/opt/ruby/bin/gem install fastlane
2020-06-17T21:13:44.1337470Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1338960Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1340200Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1341330Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1342440Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1343500Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1344600Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1346510Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1347900Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1349250Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1350510Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1351790Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1353410Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1355540Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1356940Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1357770Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:13:44.1358580Z (node:2177) Warning: Use Cipheriv for counter mode of aes-256-ctr
2020-06-17T21:14:56.6310860Z Successfully installed fastlane-2.149.1
2020-06-17T21:14:56.6311900Z Parsing documentation for fastlane-2.149.1
2020-06-17T21:14:56.6312620Z Installing ri documentation for fastlane-2.149.1
2020-06-17T21:14:56.6313050Z Done installing documentation for fastlane after 60 seconds
2020-06-17T21:14:56.6313360Z 1 gem installed
2020-06-17T21:14:56.6674230Z [command]/usr/local/opt/ruby/bin/gem update fastlane -i /Users/runner/.gem-cache
2020-06-17T21:15:00.3148890Z Updating installed gems
2020-06-17T21:15:00.3149630Z Nothing to update
2020-06-17T21:15:00.3463260Z [command]fastlane deliver submit_build -u *** -a com.Flashop --skip_binary_upload true --skip_metadata true --skip_screenshots true --force
2020-06-17T21:15:11.2699760Z [21:15:11]: [33mSeems like launching fastlane takes a while - please run[0m
2020-06-17T21:15:11.2700420Z [21:15:11]:
2020-06-17T21:15:11.2701090Z [21:15:11]: [36m$ [sudo] gem cleanup[0m
2020-06-17T21:15:11.2701410Z [21:15:11]:
2020-06-17T21:15:11.2702100Z [21:15:11]: [33mto uninstall outdated gems and make fastlane launch faster[0m
2020-06-17T21:15:11.2703010Z [21:15:11]: [33mAlternatively it's recommended to start using a Gemfile to lock your dependencies[0m
2020-06-17T21:15:11.2703840Z [21:15:11]: [33mTo get started with a Gemfile, run[0m
2020-06-17T21:15:11.2704130Z [21:15:11]:
2020-06-17T21:15:11.2704740Z [21:15:11]: [36m$ bundle init[0m
2020-06-17T21:15:11.2705410Z [21:15:11]: [36m$ echo 'gem "fastlane"' >> Gemfile[0m
2020-06-17T21:15:11.2706110Z [21:15:11]: [36m$ bundle install[0m
2020-06-17T21:15:11.2706360Z [21:15:11]:
2020-06-17T21:15:11.2707870Z [21:15:11]: [33mAfter creating the Gemfile and Gemfile.lock, commit those files into version control[0m
2020-06-17T21:15:11.2708860Z [21:15:11]: [33mGet started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile[0m
2020-06-17T21:15:28.3131010Z [21:15:28]: Sending anonymous analytics information
2020-06-17T21:15:28.3131790Z [21:15:28]: Learn more at https://docs.fastlane.tools/#metrics
2020-06-17T21:15:28.3132620Z [21:15:28]: No personal or sensitive data is sent.
2020-06-17T21:15:28.3133310Z [21:15:28]: You can disable this by adding `opt_out_usage` at the top of your Fastfile
2020-06-17T21:15:28.3396000Z [21:15:28]: Login to App Store Connect (***)
2020-06-17T21:15:30.5901670Z [21:15:30]: Login successful
2020-06-17T21:15:30.8925180Z
2020-06-17T21:15:30.8959620Z +--------------------------------------+------------------------+
2020-06-17T21:15:30.8961270Z | [32mdeliver 2.149.1 Summary[0m |
2020-06-17T21:15:30.8962690Z +--------------------------------------+------------------------+
2020-06-17T21:15:30.8964690Z | username | *** |
2020-06-17T21:15:30.8965380Z | app_identifier | com.Flashop |
2020-06-17T21:15:30.8965960Z | skip_binary_upload | true |
2020-06-17T21:15:30.8966610Z | skip_metadata | true |
2020-06-17T21:15:30.8967260Z | skip_screenshots | true |
2020-06-17T21:15:30.8967840Z | force | true |
2020-06-17T21:15:30.8968470Z | submit_for_review | true |
2020-06-17T21:15:30.8969610Z | build_number | latest |
2020-06-17T21:15:30.8970350Z | screenshots_path | ./screenshots |
2020-06-17T21:15:30.8970940Z | metadata_path | ./metadata |
2020-06-17T21:15:30.8972130Z | platform | ios |
2020-06-17T21:15:30.8972750Z | edit_live | false |
2020-06-17T21:15:30.8976410Z | use_live_version | false |
2020-06-17T21:15:30.8976900Z | skip_app_version_update | false |
2020-06-17T21:15:30.8977270Z | overwrite_screenshots | false |
2020-06-17T21:15:30.8977740Z | reject_if_possible | false |
2020-06-17T21:15:30.8978350Z | automatic_release | false |
2020-06-17T21:15:30.8978900Z | phased_release | false |
2020-06-17T21:15:30.8980190Z | reset_ratings | false |
2020-06-17T21:15:30.8980870Z | run_precheck_before_submit | true |
2020-06-17T21:15:30.8981350Z | precheck_default_rule_level | warn |
2020-06-17T21:15:30.8981750Z | individual_metadata_items | [] |
2020-06-17T21:15:30.8982160Z | ignore_language_directory_validation | false |
2020-06-17T21:15:30.8982560Z | precheck_include_in_app_purchases | true |
2020-06-17T21:15:30.8983610Z +--------------------------------------+------------------------+
2020-06-17T21:15:30.8984020Z
2020-06-17T21:15:31.2459710Z [21:15:31]: Running precheck before submitting to review, if you'd like to disable this check you can set run_precheck_before_submit to false
2020-06-17T21:15:31.2461320Z [21:15:31]: Making sure we pass precheck 👮â€â™€ï¸ 👮 before we submit 🛫
2020-06-17T21:15:31.2520660Z
2020-06-17T21:15:31.2534510Z +--------------------------+------------------------+
2020-06-17T21:15:31.2535520Z | [32mSummary for precheck 2.149.1[0m |
2020-06-17T21:15:31.2537400Z +--------------------------+------------------------+
2020-06-17T21:15:31.2537970Z | default_rule_level | warn |
2020-06-17T21:15:31.2538960Z | include_in_app_purchases | true |
2020-06-17T21:15:31.2539290Z | app_identifier | com.Flashop |
2020-06-17T21:15:31.2539990Z | username | *** |
2020-06-17T21:15:31.2541010Z +--------------------------+------------------------+
2020-06-17T21:15:31.2541400Z
2020-06-17T21:15:31.2541900Z [21:15:31]: Checking app for precheck rule violations
2020-06-17T21:15:35.8192670Z [21:15:35]: Reading in-app purchases. If you have a lot, this might take a while
2020-06-17T21:15:35.8198360Z [21:15:35]: You can disable IAP checking by setting the `include_in_app_purchases` flag to `false`
2020-06-17T21:16:11.0373250Z [21:16:11]: Done reading in-app purchases
2020-06-17T21:16:12.1996230Z [21:16:12]: ✅ Passed: No negative  sentiment
2020-06-17T21:16:12.2000320Z [21:16:12]: ✅ Passed: No placeholder text
2020-06-17T21:16:12.2001640Z [21:16:12]: ✅ Passed: No mentioning  competitors
2020-06-17T21:16:12.2004630Z [21:16:12]: ✅ Passed: No future functionality promises
2020-06-17T21:16:12.2006460Z [21:16:12]: ✅ Passed: No words indicating test content
2020-06-17T21:16:12.2373350Z [21:16:12]: ✅ Passed: No curse words
2020-06-17T21:16:12.2374240Z [21:16:12]: ✅ Passed: No words indicating your IAP is free
2020-06-17T21:16:12.2378380Z [21:16:12]: ✅ Passed: Incorrect, or missing copyright date
2020-06-17T21:16:14.3384950Z [21:16:14]: ✅ Passed: No broken urls
2020-06-17T21:16:14.3386400Z [21:16:14]: [32mprecheck 👮â€â™€ï¸ 👮 finished without detecting any potential problems 🛫[0m
2020-06-17T21:16:15.0638440Z [21:16:15]: Selecting the latest build...
2020-06-17T21:16:16.0628900Z [21:16:16]: Selecting build (1.7.8)...
2020-06-17T21:16:16.3545900Z Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 2)...
2020-06-17T21:16:26.6439650Z Potential server error received: 'Unexpected Error'. Retrying after 10 seconds (remaining: 1)...
2020-06-17T21:16:37.1114430Z
2020-06-17T21:16:37.1116070Z Looking for related GitHub issues on fastlane/fastlane...
2020-06-17T21:16:37.1116510Z
2020-06-17T21:16:37.9048880Z âž¡ï¸ [33mfastlane deliver: Potential server error received: 'Unexpected Error'[0m
2020-06-17T21:16:37.9049970Z https://github.com/fastlane/fastlane/issues/16621 [[31mopen[0m] 47 💬
2020-06-17T21:16:37.9052440Z 53 seconds ago
2020-06-17T21:16:37.9052730Z
2020-06-17T21:16:37.9054210Z âž¡ï¸ [33m[upload_to_app_store] #<ArgumentError: different prefix: "/" and "fastlane">[0m
2020-06-17T21:16:37.9055270Z https://github.com/fastlane/fastlane/issues/16317 [[32mclosed[0m] 5 💬
2020-06-17T21:16:37.9055670Z 18 hours ago
2020-06-17T21:16:37.9055820Z
2020-06-17T21:16:37.9056410Z âž¡ï¸ [33mFastlane trying to access my photos?![0m
2020-06-17T21:16:37.9057210Z https://github.com/fastlane/fastlane/issues/15768 [[32mclosed[0m] 6 💬
2020-06-17T21:16:37.9057530Z 05 Apr 2020
2020-06-17T21:16:37.9057760Z
2020-06-17T21:16:37.9058650Z and 20 more at: https://github.com/fastlane/fastlane/search?q=The%20request%20could%20not%20be%20completed%20because%3A%0A%09Unexpected%20Error&type=Issues&utf8=✓
2020-06-17T21:16:37.9059290Z
2020-06-17T21:16:37.9059960Z 🔗 You can ⌘ + double-click on links to open them directly in your browser.
2020-06-17T21:16:37.9060660Z [31m
2020-06-17T21:16:37.9060990Z [!] The request could not be completed because:
2020-06-17T21:16:37.9061580Z Unexpected Error[0m
2020-06-17T21:16:37.9266850Z ##[error]Error: fastlane failed with return code: 1
2020-06-17T21:16:37.9282270Z ##[section]Finishing: AppStorePromote
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Reactions: 6
- Comments: 19 (7 by maintainers)
↑ I updated fastlane version to 2.164.0 and I confirmed the problem was fixed 🙇
Sweet! 🚀 Thanks for confirming this @ToshikiHata 🤗
Since this is an issue dated back when we were upgrading fastlane to the new App Store Connect APIs, I encourage everyone to simply update fastlane like @ToshikiHata did and check if it’s still an issue for you. If so, please create a new issue with updated scenario, stacktrace and we’ll sure take a look 💪
✌️
I still face this problem. I collected a log with
fastlane run spaceship_logs. It seemed that a 500 error occurred at the execution ofra/apps/{id}/platforms/ios/versions/{id}API. (My test app’s status isPrepare for Submission, is that relevant?)fastlane version:
console output:
excerpt from spaceship log:
…
@MarcoSantarossa That is an insanely fix “Unexpected Error” output 😱 I’m very surprised there isn’t any other output there.
I opened a issue on the Microsoft devops extension here: https://github.com/microsoft/app-store-vsts-extension/issues/154
Thanks!