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

psych v4.0 to break FASTLANE_SESSION functionality #18768

Closed
4 tasks done
igoriuz opened this issue May 28, 2021 · 10 comments · Fixed by #18825
Closed
4 tasks done

psych v4.0 to break FASTLANE_SESSION functionality #18768

igoriuz opened this issue May 28, 2021 · 10 comments · Fixed by #18825

Comments

@igoriuz
Copy link

igoriuz commented May 28, 2021

New Issue Checklist

Issue Description

Creating a fastlane session or downloading dsysm with valid FASTLANE_SESSION is not possible anymore. This is only valid for ruby 2.7.x. It seems to work with Ruby 3.0.1 (at least generating FASTLANE_SESSION)

Command executed

I've upgraded all my gems and since then it doesn't work. I believe it has something to do with dependencies.

Complete output when running fastlane, including the stack trace and command used
 [14:03:07]: Login to App Store Connect (*****)
Tried to load unspecified class: HTTP::Cookie
Continuing with normal login.
Error loading session from environment
Make sure to pass the session in a valid format
+------------------+-----------------+
|            Lane Context            |
+------------------+-----------------+
| DEFAULT_PLATFORM | ios             |
| PLATFORM_NAME    | ios             |
| LANE_NAME        | ios dsym_upload |
+------------------+-----------------+
[14:03:07]: Tried to load unspecified class: HTTP::Cookie
+------+----------------------------+-------------+
|                fastlane summary                 |
+------+----------------------------+-------------+
| Step | Action                     | Time (in s) |
+------+----------------------------+-------------+
| 1    | Verifying fastlane version | 0           |
| 2    | default_platform           | 0           |
| 3    | app_store_connect_api_key  | 0           |
| 4    | cocoapods                  | 10          |
| 💥   | download_dsyms             | 0           |
+------+----------------------------+-------------+
[14:03:07]: fastlane finished with errors
Looking for related GitHub issues on fastlane/fastlane...
➡️  Precheck - Unspecified error
    https://github.com/fastlane/fastlane/issues/17150 [closed] 2 💬
    09 Nov 2020
➡️  [Issue] Tried to load unspecified class: HTTP::Cookie when running fastlane spaceauth -u
    https://github.com/fastlane/fastlane/issues/8011 [closed] 4 💬
    26 Apr 2017
🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/class_loader.rb:99:in `find': \e[31m[!] Tried to load unspecified class: HTTP::Cookie\e[0m (Psych::DisallowedClass)
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/class_loader.rb:28:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:424:in `resolve_class'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:213:in `visit_Psych_Nodes_Mapping'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `block in register_empty'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `each'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `register_empty'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:146:in `visit_Psych_Nodes_Sequence'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych.rb:334:in `safe_load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych.rb:369:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar/yaml_saver.rb:24:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:325:in `block in load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `open'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:609:in `load_session_from_env'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:441:in `send_shared_login_request'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/tunes/tunes_client.rb:127:in `send_login_request'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:808:in `do_login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:393:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:355:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/connect_api/client.rb:56:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/actions/download_dsyms.rb:18:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:60:in `block (2 levels) in parsing_binding'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/bin/fastlane:23:in `'
	from /Users/r2d2/.rbenv/versions/2.7.0/bin/fastlane:23:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/bin/fastlane:23:in `'
/Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/class_loader.rb:99:in `find': Tried to load unspecified class: HTTP::Cookie (Psych::DisallowedClass)
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/class_loader.rb:28:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:424:in `resolve_class'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:213:in `visit_Psych_Nodes_Mapping'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `block in register_empty'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `each'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:338:in `register_empty'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:146:in `visit_Psych_Nodes_Sequence'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:318:in `visit_Psych_Nodes_Document'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:30:in `visit'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/visitor.rb:6:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych/visitors/to_ruby.rb:35:in `accept'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych.rb:334:in `safe_load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/psych-4.0.0/lib/psych.rb:369:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar/yaml_saver.rb:24:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:325:in `block in load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `open'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/http-cookie-1.0.3/lib/http/cookie_jar.rb:324:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:609:in `load_session_from_env'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:441:in `send_shared_login_request'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/tunes/tunes_client.rb:127:in `send_login_request'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:808:in `do_login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:393:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/client.rb:355:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/tunes/spaceship.rb:24:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/connect_api/client.rb:56:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/spaceship/lib/spaceship/connect_api/spaceship.rb:85:in `login'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/actions/download_dsyms.rb:18:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:263:in `block (2 levels) in execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/actions/actions_helper.rb:69:in `execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:255:in `block in execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:229:in `chdir'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:229:in `execute_action'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/fast_file.rb:159:in `method_missing'
	from Fastfile:60:in `block (2 levels) in parsing_binding'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/lane.rb:33:in `call'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:49:in `block in execute'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:45:in `chdir'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/runner.rb:45:in `execute'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/lane_manager.rb:47:in `cruise_lane'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:109:in `block (2 levels) in run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:353:in `run'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/commands_generator.rb:42:in `start'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/fastlane/lib/fastlane/cli_tools_distributor.rb:122:in `take_off'
	from /Users/r2d2/.rbenv/versions/2.7.0/lib/ruby/gems/2.7.0/gems/fastlane-2.184.0/bin/fastlane:23:in `'
	from /Users/r2d2/.rbenv/versions/2.7.0/bin/fastlane:23:in `load'
	from /Users/r2d2/.rbenv/versions/2.7.0/bin/fastlane:23:in `'

Environment

✅ fastlane environment ✅

Stack

Key Value
OS 11.3.1
Ruby 2.7.0
Bundler? false
Git git version 2.30.1 (Apple Git-130)
Installation Source ~/.rbenv/versions/2.7.0/bin/fastlane
Host macOS 11.3.1 (20E241)
Ruby Lib Dir ~/.rbenv/versions/2.7.0/lib
OpenSSL Version OpenSSL 1.1.1j 16 Feb 2021
Is contained false
Is homebrew false
Is installed via Fabric.app false
Xcode Path /Applications/Xcode.app/Contents/Developer/
Xcode Version 12.5

System Locale

Variable Value
LANG de_DE.UTF-8
LC_ALL
LANGUAGE

fastlane files:

No Fastfile found

No Appfile found

fastlane gems

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

Loaded fastlane plugins:

No plugins Loaded

Loaded gems
Gem Version
did_you_mean 1.5.0
atomos 0.1.3
CFPropertyList 3.0.3
claide 1.0.3
colored2 3.1.2
nanaimo 0.3.0
xcodeproj 1.19.0
rouge 2.0.7
xcpretty 0.3.0
terminal-notifier 2.0.0
unicode-display_width 1.7.0
terminal-table 1.8.0
plist 3.6.0
public_suffix 4.0.6
addressable 2.7.0
multipart-post 2.0.0
word_wrap 1.0.0
tty-screen 0.8.1
tty-cursor 0.7.1
tty-spinner 0.9.3
artifactory 3.0.15
babosa 1.0.4
colored 1.2
highline 2.0.3
commander 4.6.0
excon 0.81.0
faraday-em_http 1.0.0
faraday-em_synchrony 1.0.0
faraday-excon 1.1.0
faraday-net_http 1.0.1
faraday-net_http_persistent 1.1.0
ruby2_keywords 0.0.4
faraday 1.4.2
unf_ext 0.0.7.7
unf 0.1.4
domain_name 0.5.20190701
http-cookie 1.0.3
faraday-cookie_jar 0.0.7
faraday_middleware 1.0.0
fastimage 2.2.3
gh_inspector 1.1.3
mini_magick 4.11.0
naturally 2.2.1
rubyzip 2.3.0
security 0.1.3
xcpretty-travis-formatter 1.0.1
dotenv 2.7.6
simctl 1.6.8
jwt 2.2.3
uber 0.1.0
declarative 0.0.20
trailblazer-option 0.1.1
representable 3.1.1
retriable 3.1.2
mini_mime 1.1.0
multi_json 1.15.0
signet 0.15.0
memoist 0.16.2
os 1.1.1
googleauth 0.16.2
httpclient 2.8.3
google-apis-core 0.3.0
google-apis-playcustomapp_v1 0.3.0
google-apis-androidpublisher_v3 0.4.0
google-cloud-env 1.5.0
google-cloud-errors 1.1.0
google-cloud-core 1.6.0
google-apis-iamcredentials_v1 0.4.0
google-apis-storage_v1 0.4.0
rake 13.0.3
digest-crc 0.6.3
google-cloud-storage 1.31.1
emoji_regex 3.2.2
jmespath 1.4.0
aws-partitions 1.463.0
aws-eventstream 1.1.1
aws-sigv4 1.2.3
aws-sdk-core 3.114.0
aws-sdk-kms 1.43.0
aws-sdk-s3 1.95.1
uri 0.10.1
json 2.5.1
bundler 2.2.18
rexml 3.2.5
webrick 1.7.0
forwardable 1.3.2
logger 1.4.3
cgi 0.2.0
date 3.1.1
timeout 0.1.1
stringio 3.0.0
openssl 2.2.0
ipaddr 1.2.2
zlib 1.1.0
connection_pool 2.2.5
net-http-persistent 4.0.1
ostruct 0.3.3
strscan 3.0.0
io-console 0.5.9
delegate 0.2.0
fileutils 1.5.0
singleton 0.1.1
open3 0.1.1
yaml 0.1.1
psych 4.0.0
mutex_m 0.1.1

generated on: 2021-05-28

@igoriuz
Copy link
Author

igoriuz commented May 28, 2021

I can now confirm that everything works again with ruby 3.0.1 (only master.. the issue i had has been fixed recently).

@igoriuz igoriuz changed the title Tried to load unspecified class: HTTP::Cookie (Only Ruby 2.7.x) Tried to load unspecified class: HTTP::Cookie (Only Ruby 2.7.x - Works with ruby 3.0.1) May 28, 2021
@max-ott
Copy link
Contributor

max-ott commented May 28, 2021

Can you/we close the issue?

@igoriuz
Copy link
Author

igoriuz commented May 28, 2021

Feel free to close it If fastlane doesn't support ruby 2.x.x anymore

@igoriuz
Copy link
Author

igoriuz commented May 31, 2021

Getting the same error again after gem update :/

EDIT: Downgrading psych works.. i'll raise an issue in their repository

@igoriuz igoriuz changed the title Tried to load unspecified class: HTTP::Cookie (Only Ruby 2.7.x - Works with ruby 3.0.1) Tried to load unspecified class: HTTP::Cookie (3rd Party Dependency) May 31, 2021
@iTofu
Copy link

iTofu commented Jun 1, 2021

So is that means FASTLANE_SESSION not possible anymore?

@igoriuz
Copy link
Author

igoriuz commented Jun 1, 2021

So is that means FASTLANE_SESSION not possible anymore?

As a quick fix: Downgrade psych to 3.3.0.

@iTofu
Copy link

iTofu commented Jun 1, 2021

So is that means FASTLANE_SESSION not possible anymore?

As a quick fix: Downgrade psych to 3.3.0.

OK, thank you 👍

@ainame ainame changed the title Tried to load unspecified class: HTTP::Cookie (3rd Party Dependency) psych v4.0 to break FASTLANE_SESSION functionality Jun 5, 2021
@ainame ainame self-assigned this Jun 5, 2021
@ainame
Copy link
Contributor

ainame commented Jun 5, 2021

As I noted here #17931 (comment), this will definitely be an issue for fastlane when Ruby 3.1.0 is released. It happens because of psych v4.0.0 having a breaking change that affects an internal dependency http-cookie gem. I will submit a PR to https://github.com/sparklemotion/http-cookie to resolve the root issue and attempt to ask the author to release a new version.

@ainame
Copy link
Contributor

ainame commented Jun 5, 2021

Note: If you happen to use psych v4.0, you can downgrade it to v3.x to make things work for now.

@igoriuz
Copy link
Author

igoriuz commented Jun 7, 2021

http-cookie released a new version

Now the stack trace is a little bit shorter

/Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/psych-4.0.0/lib/psych.rb:322:in `safe_load': \e[31m[!] wrong number of arguments (given 4, expected 1)\e[0m (ArgumentError)
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/spaceauth_runner.rb:42:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:46:in `block (2 levels) in run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:52:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:15:in `start'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in `take_off'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/bin/fastlane:23:in `<top (required)>'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/bin/fastlane:23:in `load'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/bin/fastlane:23:in `<main>'
/Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/psych-4.0.0/lib/psych.rb:322:in `safe_load': wrong number of arguments (given 4, expected 1) (ArgumentError)
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/spaceauth_runner.rb:42:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:46:in `block (2 levels) in run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:52:in `run'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/spaceship/lib/spaceship/commands_generator.rb:15:in `start'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/fastlane/lib/fastlane/cli_tools_distributor.rb:114:in `take_off'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/lib/ruby/gems/3.0.0/gems/fastlane-2.185.0/bin/fastlane:23:in `<top (required)>'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/bin/fastlane:23:in `load'
	from /Users/ikazhdan/.rbenv/versions/3.0.1/bin/fastlane:23:in `<main>'

@fastlane fastlane locked and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.