microsoft / app-store-vsts-extension

Visual Studio Team Services (VSTS) extension for performing continuous delivery to the App Store store from your automated CI builds
Other
93 stars 53 forks source link

Unable to deploy to TestFlight with Token based authentication #277

Closed ogezue closed 2 years ago

ogezue commented 2 years ago

Question, Bug, or Feature?
Type: Question

Enter Task Name: Unable to deploy to TestFlight with Token based authentication

list here (V# not needed):
https://github.com/microsoft/app-store-vsts-extension/tree/master/Tasks

Environment

Azure Pipelines

Issue Description

I'm unable to use AppStoreRelease to publish the app to my external testers. Before I used AppCenter without a problem. Here is the script I'm currently using. It complains about a missing fastlane session and I don't know if I really need to provide it and how. Currently I'm using installFastle false

[Enable debug logging and please provide the zip file containing all the logs for a speedy resolution]

Troubleshooting

I tried several options. If I don't provide release nots (which I copy from the repo without an error in a previous step) it complains that it can't deploy to testers without it. With release Notes it complains about the missing session.

Error logs

from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:67:in `block (2 levels) in run'
from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:167:in `run'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:19:in `start'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off'
from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/bin/fastlane:23:in `<top (required)>'
from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in `load'
from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in `<main>'

/usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:71:in initialize': string contains null byte (ArgumentError) from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:71:innew' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:71:in create' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:49:infrom_json_file' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:33:in from' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/manager.rb:23:inlogin' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/manager.rb:19:in start' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/build_manager.rb:17:inupload' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:67:in block (2 levels) in run' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:incall' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in run' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:inrun_active_command' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in run!' from /usr/local/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:inrun!' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:167:in run' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:19:instart' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in take_off' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/bin/fastlane:23:in<top (required)>' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in load' from /usr/local/lib/ruby/gems/2.7.0/bin/fastlane:25:in

'

[error]Error: The process '/usr/local/lib/ruby/gems/2.7.0/bin/fastlane' failed with exit code 1

Finishing: Publish to the App Store TestFlight track

max-zaytsev commented 2 years ago

@ogezue Thanks for reporting! We are working on more prioritized issues now but will get back to this one soon

pk1498 commented 2 years ago

Hi @ogezue, were you able to resolve this? I am facing the same error. I have double checked my service endpoint credentials and also tried token-based authentication, but this error is consistent.

@max-zaytsev can you please look into this, thank you.

ogezue commented 2 years ago

@pk1498 Yes, I did. Problem was that my token for Apple was not base64 encoded. The error message doesn't make this clear.