fastlane: fastlane deliver --skip_screenshots failed, "Could not render HTML preview. Do you still want to continue?"

[18:50:12]: Loading './metadata/review_information/notes.txt'...
[18:50:13]: #<TypeError: no implicit conversion of nil into String>
[18:50:13]: /Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/html_generator.rb:37:in `initialize'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/html_generator.rb:37:in `new'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/html_generator.rb:37:in `render_relative_path'
(erb):147:in `render'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:864:in `eval'
/System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/erb.rb:864:in `result'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/html_generator.rb:56:in `render'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/html_generator.rb:13:in `run'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/runner.rb:180:in `validate_html'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/runner.rb:117:in `upload_metadata'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/runner.rb:38:in `run'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/commands_generator.rb:79:in `block (2 levels) in run'
/Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'
/Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'
/Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'
/Library/Ruby/Gems/2.3.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/commands_generator.rb:182:in `run'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/deliver/lib/deliver/commands_generator.rb:17:in `start'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/fastlane/lib/fastlane/cli_tools_distributor.rb:100:in `take_off'
/Library/Ruby/Gems/2.3.0/gems/fastlane-2.105.2/bin/fastlane:20:in `<top (required)>'
/usr/local/bin/fastlane:22:in `load'
/usr/local/bin/fastlane:22:in `<main>'
[18:50:13]: Could not render HTML preview. Do you still want to continue?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

Heyyyy 👋 I have a fix for this ^ This should be released in the next version 😊

Over in https://github.com/fastlane/fastlane/issues/12789, which is the actual problem which is causing problems for you in a totally different place, I posted some instructions on how to use a special variant of the current fastlane version that gives some output that might help us understand what is going on: https://github.com/fastlane/fastlane/issues/12789#issuecomment-444942320 Would be nice if some of you could jump over there and report back. I will try to iterate then and somehow figure out what is going on.

@janpio @domzilla Yeah happens every time for me as well. Local machine as well.

And for me also without --skip_screenshots.

p.s. one weird thing I noticed is that fastlane env spits out version 2.105.2, although the installation source points to the latest fastlane version 🤔.

| Installation Source         | ~/foo/bar/vendor/bundle/ruby/2.5.0/gems/fastlane-2.108.0/bin/fastlane |
...
fastlane | 2.105.2 | 🚫 Update available

Note that I’m using a script that installs the latest fastlane, but that shouldn’t matter as @domzilla points out that the issue also persists for them.

GEMSET_PATH=vendor/bundle
bundle install --path ${GEMSET_PATH}
# forward all arguments to deliver
bundle exec fastlane deliver "$@"

But since I’m not the only one having the problem I guess it’s not related to the version mismatch.

@janpio The issue is consistent on every fastlane deliver across different apps. I’m using it on my local machine. It also happens without –skip_screenshots.

I have the same error.

@angelsubirana @adi101010 Meanwhile if you do not rely too much on the HTML Preview file you can run the command with --force switch like that: fastlane deliver run --force = true