fastlane: A 504 Gateway time-out error message appeared when uploading to testflight.
Hello,Last week is ok. I have been reporting errors since this week. I can upload with Xcode. I checked the answers to the questions, but didn’t find the right answers.
fastlane version: 2.102.0
Logs:
.........
[14:35:49]: ----------------------------------
[14:35:49]: --- Step: upload_to_testflight ---
[14:35:49]: ----------------------------------
[14:35:49]: Login to App Store Connect (benson.yang@priodigit.com)
[14:35:52]: Login successful
+--------------------+--------------------------------------------------------------------------------------------------+
| Lane Context |
+--------------------+--------------------------------------------------------------------------------------------------+
| DEFAULT_PLATFORM | ios |
| PLATFORM_NAME | ios |
| LANE_NAME | ios uptestflight |
| IPA_OUTPUT_PATH | /Users/perry/Documents/MyProject/CoBandForiOS/ImcoWatch.ipa |
| DSYM_OUTPUT_PATH | /Users/perry/Documents/MyProject/CoBandForiOS/ImcoWatch.app.dSYM.zip |
| XCODEBUILD_ARCHIVE | /Users/perry/Library/Developer/Xcode/Archives/2018-08-31/ImcoWatch 2018-08-31 14.33.10.xcarchive |
+--------------------+--------------------------------------------------------------------------------------------------+
[14:36:52]: <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
+------+----------------------+-------------+
| fastlane summary |
+------+----------------------+-------------+
| Step | Action | Time (in s) |
+------+----------------------+-------------+
| 1 | default_platform | 0 |
| 2 | build_app | 162 |
| 💥 | upload_to_testflight | 63 |
+------+----------------------+-------------+
[14:36:52]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️ Version getters
https://github.com/fastlane/fastlane/pull/504 [closed] 4 💬
04 Feb 2017
🔗 You can ⌘ + double-click on links to open them directly in your browser.
(Spaceship::UnexpectedResponse)stlane-2.102.0/spaceship/lib/spaceship/client.rb:602:in `parse_response': [!] <html>
<head><title>504 Gateway Time-out</title></head>
<body bgcolor="white">
<center><h1>504 Gateway Time-out</h1></center>
<hr><center>nginx</center>
</body>
</html>
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/tunes/tunes_client.rb:256:in `applications'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/tunes/application.rb:67:in `all'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/spaceship/lib/spaceship/tunes/application.rb:73:in `find'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/pilot/lib/pilot/manager.rb:50:in `fetch_app_id'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/pilot/lib/pilot/manager.rb:30:in `app'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/pilot/lib/pilot/build_manager.rb:27:in `upload'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/actions/upload_to_testflight.rb:16:in `run'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:253:in `block (2 levels) in execute_action'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/actions/actions_helper.rb:50:in `execute_action'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:227:in `chdir'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:227:in `execute_action'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/fast_file.rb:149:in `method_missing'
from Fastfile:22:in `block (2 levels) in parsing_binding'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/lane.rb:33:in `call'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:74:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/commands_generator.rb:333:in `run'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/commands_generator.rb:41:in `start'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/fastlane/lib/fastlane/cli_tools_distributor.rb:108:in `take_off'
from /Library/Ruby/Gems/2.3.0/gems/fastlane-2.102.0/bin/fastlane:20:in `<top (required)>'
from /usr/local/bin/fastlane:22:in `load'
from /usr/local/bin/fastlane:22:in `<main>'
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 62 (22 by maintainers)
Does everybody in this channel try to upload their build via Fastlane from behind the GFW ? 👍 YES 👎 NO
Wheee, glad we could fix it! 🚀
Please open a new issue if you have any follow up problems.
Location china, I got 504.
And fix this issues by switch on my VPN.
Emmm… 2018.09.05 I upload again. I turn on VPN, but got 504. 0.0
Tried some times, I finally upload success again.
My VPN node is L.A.
@janpio sorry, the tool’s link will be open after one month. And you can try deliver , it will be failed again. fatslane have many bugs, if you have interest . i can help you ,because lots of code needs to revise. i can give you a guideline, send you zip files and guideline text . meanwhile , the files give the some bug of fastlane and how to solve. sorry to make you think that is spam , i will remove my email here. sincerely.
@StevenMasini What I do is change
itunesconnect.apple.comtoappstoreconnect.apple.comon2.102.0and it works (without VPN in Shanghai or with VPN through Taiwan) . I guess the root cause is apple now rebrandingitunesconnectasappstoreconnectand they have separate data center in china (the Guizhou center). Maybe there’s some differences with other data center.Same here
get same problem,chinese
i known the reason and how to solve it! easily!
@janpio I updated this morning to Fastlane
2.103.1which add [spaceship] use itunesconnect.com hostname when looking up itc_service_key for olympus session and I am not getting the504 Gateway Time-outerror anymore.This issue is fixed for me, I think @snipking is probably right. Might be just a problem of re-branding from Apple and their data-center in China.
Yes, there is currently a problem caused by the changes done in 2.103.0 - so stuff is broken right now.
@chronweigle already fixed it in https://github.com/fastlane/fastlane/pull/13286 and we are currently testing and seeing if this covers all failure cases. As soon as this is confirmed, there will be a 2.103.1 release. Sorry for that.
Until then, you best do not update or downgrade again to 2.102.0
same here, vpn sometimes work, sometimes not. seems 2 b a random bug. I changed to another mac, it always works without vpn.
Awesome @samchang8826. @chronweigle has a PR over at https://github.com/fastlane/fastlane/pull/13272/files that replaces
itunesconnect.apple.comwithappstoreconnect.apple.com. Can you run the same commands again for that domain to confirm this domain works?@janpio I have found the url finally.
$ dig itunesconnect.apple.com$ curl -vv "https://itunesconnect.apple.com/WebObjects/iTunesConnect.woa/ra/apps/manageyourapps/summary/v2"@xudong98 Thank you for removing your email. This thread should be about finding a way to fix this issue within the current toolset which is fastlane. If you have a valid solution for something in the future, we would appreciate either a comment on what is broken and how to fix it or a pull request with a solution 👌 We definitely don’t want to stop you from working on your tool and we aren’t saying your tool isn’t a valid solution but the conversation about it does not belong here if it can’t be usable right now within a fastlane context 🙃
Sent with GitHawk
@janpio ,it is not the problem of manifest, it is problem of fastlane. recently i have write my tool , my tool can solve this and meanwhile have many function which fastlane can not work
For future readers: If your “Gateway Timeout” page also includes “In read” or “Reference # 1.xyz”, you have a different problem and should look at https://github.com/fastlane/fastlane/issues/13241#issuecomment-417173817. This issue is really only about problems that manifest themselves in the exact html page mentioned above.
@janpio No, it’s not a specific nginx gateway timeout. I think you’re correct, it’s more closely related to there other issue. Thank you.