Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastlane init - creating app on AppStore connect results in error: The request could not be completed because: Server error got 500 #22010

Open
4 tasks done
kassi opened this issue May 9, 2024 · 0 comments

Comments

@kassi
Copy link

kassi commented May 9, 2024

New Issue Checklist

Issue Description

fastlane init is unable to create app in dev portal, receiving 500 server error when trying to initialize for snapshots with uploading.
Interestingly it started by mentioning, the app doesn't exist in dev portal and failed creating it there.
However the debug output shows AppStore Connect now.

I then tried fastlane produce which successfully created the app in dev portal but failed on appstore connect because an app with same name already exists in another account.
Since the recurring error with fastlane init says something different, I keep this posted here.

Same result when using Xcode 15.2 and now 15.3 (if this makes a difference at all).

Command executed
bundle exec fastlane spaceauth -u my-apple-id
# succeeded
bundle exec fastlane init
Complete output when running fastlane, including the stack trace and command used
[16:34:57]: Please enter your Apple ID developer credentials
[16:34:57]: Apple ID Username:
my-apple-id
[16:35:13]: Logging in...
[16:35:16]: ✅  Logging in with your Apple ID was successful
[16:35:16]: Checking if the app 'de.kluks.SimpleApp' exists on App Store Connect...
[16:35:17]: Looks like the app 'de.kluks.SimpleApp' isn't available on App Store Connect
[16:35:17]: for the team ID '………………………' on Apple ID 'my-apple-id'
[16:35:17]: Would you like fastlane to create the App on App Store Connect for you? (y/n)
y

+-------------------------------------+
| Summary for produce 2.220.0 |
+----------------+--------------------+
| username | my-apple-id |
| team_id | ……………………… |
| itc_team_id | ……………………… |
| platform | ios |
| app_identifier | de.kluks.SimpleApp |
| skip_devcenter | true |
| sku | ………………………… |
| language | English |
| skip_itc | false |
+----------------+--------------------+

[16:35:24]: App Name: SimpleApp
[16:35:28]: Creating new app 'SimpleApp' on App Store Connect
[16:35:28]: Sending language name is deprecated. 'English' has been mapped to 'en-US'.
[16:35:28]: Please enter one of available languages: ["ar-SA", "ca", "cs", "da", "de-DE", "el", "en-AU", "en-CA", "en-GB", "en-US", "es-ES", "es-MX", "fi", "fr-CA", "fr-FR", "he", "hi", "hr", "hu", "id", "it", "ja", "ko", "ms", "nl-NL", "no", "pl", "pt-BR", "pt-PT", "ro", "ru", "sk", "sv", "th", "tr", "uk", "vi", "zh-Hans", "zh-Hant"]
Timeout received! Retrying after 3 seconds (remaining: 5)...
Timeout received! Retrying after 3 seconds (remaining: 4)...
Timeout received! Retrying after 3 seconds (remaining: 3)...
Timeout received! Retrying after 3 seconds (remaining: 2)...
Timeout received! Retrying after 3 seconds (remaining: 1)...
ERROR [2024-05-09 16:52:03.42]: ["The request could not be completed because:", "Server error got 500"]
ERROR [2024-05-09 16:52:03.43]: /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/spaceship/lib/spaceship/connect_api/api_client.rb:215:in handle_response' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/spaceship/lib/spaceship/connect_api/api_client.rb:125:in post'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/spaceship/lib/spaceship/connect_api/tunes/tunes.rb:134:in post_app' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/3.2.0/forwardable.rb:240:in post_app'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/spaceship/lib/spaceship/connect_api/models/app.rb:88:in create' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/produce/lib/produce/itunes_connect.rb:41:in create_new_app'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/produce/lib/produce/itunes_connect.rb:16:in run' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/produce/lib/produce/manager.rb:12:in start_producing'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:484:in block in create_app_online!' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:475:in loop'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:475:in create_app_online!' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:395:in verify_app_exists_itc!'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:213:in ios_screenshots' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup_ios.rb:48:in setup_ios'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/setup/setup.rb:112:in start' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/commands_generator.rb:123:in block (2 levels) in run'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:187:in call' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in run_active_command' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in run!' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/commands_generator.rb:363:in run'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/commands_generator.rb:43:in start' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/fastlane/lib/fastlane/cli_tools_distributor.rb:123:in take_off'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/fastlane-2.220.0/bin/fastlane:23:in <top (required)>' /Users/Me/.asdf/installs/ruby/3.2.2/bin/fastlane:25:in load'
/Users/Me/.asdf/installs/ruby/3.2.2/bin/fastlane:25:in <top (required)>' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in load'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:58:in kernel_load' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli/exec.rb:23:in run'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:455:in exec' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/command.rb:28:in run'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor.rb:527:in dispatch'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:35:in dispatch' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/vendor/thor/lib/thor/base.rb:584:in start'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/cli.rb:29:in start' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.5.10/exe/bundle:28:in block in <top (required)>'
/Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/site_ruby/3.2.0/bundler/friendly_errors.rb:117:in with_friendly_errors' /Users/Me/.asdf/installs/ruby/3.2.2/lib/ruby/gems/3.2.0/gems/bundler-2.5.10/exe/bundle:20:in <top (required)>'
/Users/Me/.asdf/installs/ruby/3.2.2/bin/bundle:25:in load' /Users/Me/.asdf/installs/ruby/3.2.2/bin/bundle:25:in

'
WARN [2024-05-09 16:52:03.43]: It looks like something went wrong when we tried to create your app on the Apple Developer Portal
[2024-05-09 16:52:03.43]: Would you like to try again (y)? If you enter (n), fastlane will fall back to the manual setup (y/n)

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 14.4.1
Ruby 3.2.2
Bundler? false
Git git version 2.45.0
Installation Source ~/.asdf/installs/ruby/3.2.2/bin/fastlane
Host macOS 14.4.1 (23E224)
Ruby Lib Dir ~/.asdf/installs/ruby/3.2.2/lib
OpenSSL Version OpenSSL 1.1.1w 11 Sep 2023
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 15.3
Swift Version 5.10

System Locale

Variable Value
LANG de_DE.UTF-8
LC_ALL
LANGUAGE

fastlane files:

`./fastlane/Fastfile`
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "Description of what the lane does"
  lane :custom_lane do
    # add actions here: https://docs.fastlane.tools/actions
  end
end
`./fastlane/Appfile`
app_identifier("de.kluks.SimpleApp") # The bundle identifier of your app
apple_id("#########") # Your Apple Developer Portal username

itc_team_id("#########") # App Store Connect Team ID
team_id("#########") # Developer Portal Team ID

# For more information about the Appfile, see:
#     https://docs.fastlane.tools/advanced/#appfile

fastlane gems

Gem Version Update-Status
fastlane 2.220.0 ✅ Up-To-Date

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
error_highlight 0.6.0
did_you_mean 1.6.3
syntax_suggest 2.0.0
addressable 2.8.6
artifactory 3.0.17
jmespath 1.6.2
aws-partitions 1.925.0
aws-eventstream 1.3.0
aws-sigv4 1.8.0
aws-sdk-core 3.194.2
aws-sdk-kms 1.80.0
aws-sdk-s3 1.149.1
babosa 1.0.4
bundler 2.5.10
rexml 3.2.6
CFPropertyList 3.0.7
colored 1.2
highline 2.0.3
commander 4.6.0
dotenv 2.8.1
emoji_regex 3.2.3
excon 0.110.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-httpclient 1.0.1
multipart-post 2.4.1
faraday-multipart 1.0.4
faraday-net_http 1.0.1
faraday-net_http_persistent 1.2.0
faraday-patron 1.0.0
faraday-rack 1.0.0
faraday-retry 1.0.3
ruby2_keywords 0.0.5
faraday 1.10.3
faraday_middleware 1.2.0
domain_name 0.6.20240107
http-cookie 1.0.5
faraday-cookie_jar 0.0.7
fastimage 2.3.1
gh_inspector 1.1.3
google-cloud-env 1.6.0
jwt 2.8.1
mini_magick 4.12.0
naturally 2.2.1
plist 3.7.1
rubyzip 2.3.2
security 0.1.5
simctl 1.6.10
terminal-notifier 2.0.0
unicode-display_width 2.5.0
terminal-table 3.0.2
tty-screen 0.8.2
tty-cursor 0.7.1
tty-spinner 0.9.3
word_wrap 1.0.0
atomos 0.1.3
claide 1.1.0
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.24.0
rouge 2.0.7
xcpretty 0.3.0
xcpretty-travis-formatter 1.0.1
set 1.1.0
public_suffix 5.0.5
nkf 0.2.0
base64 0.2.0
httpclient 2.8.3
multi_json 1.15.0
signet 0.19.0
os 1.1.4
googleauth 1.8.1
mini_mime 1.1.5
retriable 3.1.2
trailblazer-option 0.1.2
declarative 0.0.20
uber 0.1.0
representable 3.2.0
google-apis-core 0.11.3
google-apis-androidpublisher_v3 0.54.0
google-apis-playcustomapp_v1 0.13.0
rake 13.2.1
digest-crc 0.6.5
google-apis-storage_v1 0.31.0
google-apis-iamcredentials_v1 0.17.0
google-cloud-errors 1.4.0
google-cloud-core 1.7.0
google-cloud-storage 1.47.0
json 2.7.2
optparse 0.5.0
forwardable 1.3.3
logger 1.6.0
pathname 0.3.0
shellwords 0.2.0
cgi 0.4.1
date 3.3.4
timeout 0.4.1
securerandom 0.3.1
cookiejar 0.3.4
eventmachine 1.2.7
em-socksify 0.3.2
http_parser.rb 0.8.0
em-http-request 1.1.7
resolv 0.4.0
openssl 3.2.0
digest 3.1.1
ipaddr 1.2.6
time 0.3.0
uri 0.13.0
open-uri 0.4.1
stringio 3.1.0
mutex_m 0.2.0
net-http 0.4.1
net-protocol 0.2.2
connection_pool 2.4.1
net-http-persistent 4.0.2
patron 0.13.3
english 0.8.0
erb 4.0.4
abbrev 0.1.2
tempfile 0.2.1
delegate 0.3.1
tmpdir 0.2.0
fileutils 1.7.2
singleton 0.2.0
open3 0.2.1
nokogiri 1.16.4
racc 1.7.3
pp 0.5.0
prettyprint 0.2.0
find 0.2.0
ostruct 0.6.0
yaml 0.3.0
psych 5.1.2

generated on: 2024-05-09

@kassi kassi changed the title fastlane init - creating app on dev portal results in error: The request could not be completed because: Server error got 500 fastlane init - creating app on AppStore connect results in error: The request could not be completed because: Server error got 500 May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant