bitrise-steplib / steps-deploy-to-itunesconnect-deliver

Deploy to iTunes Connect with Deliver
MIT License
31 stars 34 forks source link

The request cannot be fulfilled because of the state of another resource. - The resource 'appPrices' cannot be viewed, created or updated. Please view and create 'manualPrices' using the resource 'appPriceSchedules'. #130

Closed walter-ayala closed 7 months ago

walter-ayala commented 1 year ago

Troubleshooting

Issue description

I want deploy my React Native app in App Store but the step fails with the message: The request cannot be fulfilled because of the state of another resource. - The resource 'appPrices' cannot be viewed, created or updated. Please view and create 'manualPrices' using the resource 'appPriceSchedules'

And also show a warning/advertisement : Listing apps fails, due to the recent pricing update on App Store?

I don't use fastlane.

The step worked before, but now as App Store changed its price section and when I fill the information in the section with the price in the different countries it started to give this error, probably I have to change something in the step to configure that section of the AppStore.

Bitrise info

Config:
- ipa_path: /Users/vagrant/deploy/########.ipa
- pkg_path: 
- connection: api_key
- itunescon_user: 
- password: 
- app_password: 
- api_key_path: 
- api_issuer: 
- app_id: 
- bundle_id: #####
- submit_for_review: no
- skip_metadata: yes
- skip_screenshots: yes
- skip_app_version_update: no
- team_id: 
- team_name: 
- platform: ios
- options: 
- gemfile_path: ./Gemfile
- fastlane_version: latest-stable
- itms_upload_parameters: 
- verbose_log: false
- BITRISE_BUILD_URL: https://app.bitrise.io/build/befc66cd-115b-4921-8073-32f859646e92
- BITRISE_BUILD_API_TOKEN: *****
Bitrise Apple Developer Connection with API key found
Setup
fastlane version defined: latest-stable, installing...
$ gem "install" "fastlane" "--no-document"
$ rbenv "rehash"
$ fastlane "-v"
fastlane installation at path:
/Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/bin/fastlane
-----------------------------
fastlane 2.212.1
Setup took 6.931938 seconds to complete
Deploy
$ fastlane "deliver" "--api_key_path" "/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/apiKey1974645242/api_key.json" "--precheck_include_in_app_purchases" "false" "--app_identifier" "app.#####.ios" "--ipa" "/var/folders/dw/lz_9l61x0y9089f673sqt55h0000gn/T/ipaOrPkg2648974573/tmp.ipa" "--skip_screenshots" "--skip_metadata" "--force" "--platform" "ios"
[00:15:48]: Get started using a Gemfile for fastlane https://docs.fastlane.tools/getting-started/ios/setup/#use-a-gemfile
[00:15:49]: Creating authorization token for App Store Connect API
Looking for related GitHub issues on fastlane/fastlane...
➡️  Listing apps fails, due to the recent pricing update on App Store?
    https://github.com/fastlane/fastlane/issues/21125 [open] 29 💬
    2 hours ago
🔗  You can ⌘ + double-click on links to open them directly in your browser.
/Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/api_client.rb:204:in `handle_response': \e[31m[!] The request cannot be fulfilled because of the state of another resource. - The resource 'appPrices' cannot be viewed, created or updated. Please view and create 'manualPrices' using the resource 'appPriceSchedules'.\e[0m (Spaceship::UnexpectedResponse)
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/api_client.rb:113:in `get'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/testflight/testflight.rb:22:in `get_apps'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/2.7.0/forwardable.rb:235:in `get_apps'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/models/app.rb:75:in `all'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/models/app.rb:81:in `find'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/detect_values.rb:46:in `find_app'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/detect_values.rb:17:in `run!'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/runner.rb:25:in `initialize'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:82:in `new'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:82:in `block (2 levels) in run'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:187:in `run'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:18:in `start'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off'
    from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/bin/fastlane:23:in `'
    from /Users/vagrant/.rbenv/versions/2.7.6/bin/fastlane:23:in `load'
    from /Users/vagrant/.rbenv/versions/2.7.6/bin/fastlane:23:in `
' /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/api_client.rb:204:in `handle_response': The request cannot be fulfilled because of the state of another resource. - The resource 'appPrices' cannot be viewed, created or updated. Please view and create 'manualPrices' using the resource 'appPriceSchedules'. (Spaceship::UnexpectedResponse) from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/api_client.rb:113:in `get' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/testflight/testflight.rb:22:in `get_apps' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/2.7.0/forwardable.rb:235:in `get_apps' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/models/app.rb:75:in `all' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/spaceship/lib/spaceship/connect_api/models/app.rb:81:in `find' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/detect_values.rb:46:in `find_app' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/detect_values.rb:17:in `run!' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/runner.rb:25:in `initialize' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:82:in `new' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:82:in `block (2 levels) in run' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:187:in `run' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/deliver/lib/deliver/commands_generator.rb:18:in `start' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off' from /Users/vagrant/.rbenv/versions/2.7.6/lib/ruby/gems/2.7.0/gems/fastlane-2.212.1/bin/fastlane:23:in `' from /Users/vagrant/.rbenv/versions/2.7.6/bin/fastlane:23:in `load' from /Users/vagrant/.rbenv/versions/2.7.6/bin/fastlane:23:in `
' If you have issues, use the latest prerelease version of fastlane. Set the fastlane version input to "latest" to enable prerelease versions. Deploy failed, error: exit status 1

The .yml part for this step:

I also talked to bitrise support and they gave me the following solution: https://github.com/fastlane/fastlane/issues/21125#issuecomment-1464684522 but it doesn't apply in my case as I don't use fastlane directly.

Gambitboy commented 1 year ago

They seem to deployed a fix. But my project is still getting issue.

[10:27:37]: Creating authorization token for App Store Connect API
[10:27:37]: wrong number of arguments (given 2, expected 1)
/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/rubyzip-3.0.0.alpha/lib/zip/file.rb:92:in `open'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb:68:in `fetch_info_plist_with_rubyzip'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb:41:in `fetch_info_plist_file'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/fastlane_core/lib/fastlane_core/ipa_file_analyser.rb:18:in `fetch_app_version'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/detect_values.rb:73:in `find_version'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/detect_values.rb:20:in `run!'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/runner.rb:25:in `initialize'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/commands_generator.rb:82:in `new'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/commands_generator.rb:82:in `block (2 levels) in run'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:187:in `call'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/command.rb:157:in `run'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/runner.rb:444:in `run_active_command'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:124:in `run!'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/commander-4.6.0/lib/commander/delegates.rb:18:in `run!'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/commands_generator.rb:187:in `run'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/deliver/lib/deliver/commands_generator.rb:18:in `start'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/fastlane/lib/fastlane/cli_tools_distributor.rb:115:in `take_off'\n/Users/vagrant/.rbenv/versions/2.7.5/lib/ruby/gems/2.7.0/gems/fastlane-2.212.2/bin/fastlane:23:in `<top (required)>'\n/Users/vagrant/.rbenv/versions/2.7.5/bin/fastlane:23:in `load'\n/Users/vagrant/.rbenv/versions/2.7.5/bin/fastlane:23:in `<main>'
[!] Could not infer your app's version
Deploy failed, error: exit status 1

Not sure if this issue is still on their side or this repo.

jarrodparkes commented 1 year ago

@Gambitboy where was the fix deployed? I'm getting the same issue right now also. I didn't see any changes to the Deploy to App Store Connect with Deliver (formerly iTunes Connect) step.

Gambitboy commented 1 year ago

To fastlane itself. I linked the PR above.

jarrodparkes commented 1 year ago

@Gambitboy looking at their release notes now https://github.com/fastlane/fastlane/releases which release were you referring to 🤔 ? I didn't see anything for #21125 yet 😢

Gambitboy commented 1 year ago

Well it was closed because #21187 was merged which fixed the price issue. And I think this step pulls the latest version of fastlane.

Gambitboy commented 1 year ago

This is the issue I'm currently getting.

It can't seem to auto detect my app version.

Could not infer your app's version

Any ideas?

image

Gambitboy commented 1 year ago

Any help here? I'm still getting this wrong number of arguments given

bitrise-coresteps-bot commented 11 months ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

Gambitboy commented 11 months ago

I'm still experiencing the issue.

bitrise-coresteps-bot commented 8 months ago

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant. This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it. If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

bitrise-coresteps-bot commented 7 months ago

I'll close this issue as it doesn't seem to be relevant anymore. We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.