Closed ogezue closed 2 years ago
@ogezue Thanks for reporting! We are working on more prioritized issues now but will get back to this one soon
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.
@pk1498 Yes, I did. Problem was that my token for Apple was not base64 encoded. The error message doesn't make this clear.
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
Task logs
[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
/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:in
new' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:71:increate' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:49:in
from_json_file' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/spaceship/lib/spaceship/connect_api/token.rb:33:infrom' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/manager.rb:23:in
login' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/manager.rb:19:instart' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/build_manager.rb:17:in
upload' from /usr/local/lib/ruby/gems/2.7.0/gems/fastlane-2.206.2/pilot/lib/pilot/commands_generator.rb:67:inblock (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:inrun' 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:inrun!' 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:inrun' 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:intake_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:inload' 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