expo-cli icon indicating copy to clipboard operation
expo-cli copied to clipboard

expo upload:android with passed --id produces "We couldn't find build with id"

Open trexpert opened this issue 6 years ago • 19 comments

Description

Cannot upload a specific builId (by passing the --id parameter) to android play store using the expo ua command.

BUILD ID was taken from this section on expo detail page: Expo

Both (Web and CLI) are logged as same user.

Expected Behavior

I expect i can pass the BUILD ID found on Build Detail page to upload:android command

expo ua --id "[BUILD_ID]" --key [PATCH_TO_ACCESS_JSON] --track alpha

Observed Behavior

Upload action fails with message

expo ua --id "[BUILD_ID]" --key [PATCH_TO_ACCESS_JSON] --track alpha
Failed to upload the standalone app to the app store.
We couldn't find build with id [BUILD_ID]
Error: We couldn't find build with id [BUILD_ID]
    at AndroidUploader._downloadBuildById (/[email protected]/src/commands/upload/BaseUploader.ts:67:13)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)
    at AndroidUploader.upload (/[email protected]/src/commands/upload/BaseUploader.ts:31:23)
    at /[email protected]/src/commands/upload.ts:108:7
    at Command.<anonymous> (/[email protected]/src/exp.ts:85:7)

Environment

  Expo CLI 3.15.4 environment info:
    System:
      OS: macOS Sierra 10.12.6
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 12.16.1 - /usr/local/bin/node
      Yarn: 1.22.4 - /usr/local/bin/yarn
      npm: 6.13.4 - /usr/local/bin/npm
    IDEs:
      Xcode: /undefined - /usr/bin/xcodebuild
    npmPackages:
      expo: ^36.0.0 => 36.0.2
      react: 16.9.0 => 16.9.0
      react-native: https://github.com/expo/react-native/archive/sdk-36.0.1.tar.gz => 0.61.4
      react-navigation: ^4.0.10 => 4.0.10

Reproducible Demo

Just try to not use the --latest flag and specify a build id with --id [BUILD_ID] I was not able to use the id flag on 2 tested accounts and multiple projects

trexpert avatar Mar 18 '20 11:03 trexpert

Having the same issue did you find a solution?

Johann01 avatar Mar 23 '20 10:03 Johann01

Having the same issue did you find a solution?

no solution yet. still facing the same problem

trexpert avatar Mar 24 '20 13:03 trexpert

Chiming in that we're having the same problem, but that it worked last week.

BojanOro avatar Mar 25 '20 12:03 BojanOro

I'm also having this problem

fractalgelfo avatar Mar 27 '20 01:03 fractalgelfo

Same for

expo upload:ios --id <id>

ajouve avatar Mar 29 '20 08:03 ajouve

Hi -- For people who had this problem, can you please e-mail your build IDs to [email protected] ? That will help us do a better job of investigating this. @trexpert @BojanOro @fractalmarc @ajouve

ccheever avatar Apr 01 '20 19:04 ccheever

We've identified the problem and will be deploying a fix shortly.

jkhales avatar Apr 01 '20 21:04 jkhales

This issue should be resolved now, thanks for your patience!

jkhales avatar Apr 02 '20 20:04 jkhales

@jkhales I'm having the same issue for using --path <id>

expo upload:ios --id <id>

The error is : Failed to upload the standalone app to the app store. We couldn't find build with id

My expo version: 3.25.1 My expo version on package.json dependencies: ~38.0.8

I'm certain the build id I'm passing in is correct. I got it from the place where the original poster of this mentioned for build ids.

ptkpyitheim avatar Aug 28 '20 21:08 ptkpyitheim

hey @ptkpyitheim!

can you share the build id?

brentvatne avatar Aug 28 '20 21:08 brentvatne

Sure

6713ec26-8a71-4ae2-afb9-f93fcb56ba22

ptkpyitheim avatar Aug 28 '20 21:08 ptkpyitheim

hey @ptkpyitheim!

can you share the build id?

In addition to the id, I tried with --latest tag but it tells me I need to run 'expo build:ios'. I've ran it about 3 times.

ptkpyitheim avatar Aug 28 '20 21:08 ptkpyitheim

this does not appear to be a valid build id. where are you finding that?

brentvatne avatar Aug 28 '20 21:08 brentvatne

you can go to your dashboard: https://expo.io/dashboard/ then find the build, click on it, and check the Build ID field

brentvatne avatar Aug 28 '20 21:08 brentvatne

you can go to your dashboard: https://expo.io/dashboard/ then find the build, click on it, and check the Build ID field

This is where I got it from

Screen Shot 2020-08-28 at 5 33 23 PM

ptkpyitheim avatar Aug 28 '20 22:08 ptkpyitheim

ah i see - i think you may be seeing this error because it is a simulator build, and you can't upload simulator builds to apple. the error is indeed confusing around this though

brentvatne avatar Aug 28 '20 22:08 brentvatne

ah i see - i think you may be seeing this error because it is a simulator build, and you can't upload simulator builds to apple. the error is indeed confusing around this though

Ah but the only options I have are simulator or archive builds. That means I have to do the archive build instead then, correct?

ptkpyitheim avatar Aug 28 '20 22:08 ptkpyitheim

correct

brentvatne avatar Aug 28 '20 22:08 brentvatne

correct

I appreciate you.

ptkpyitheim avatar Aug 28 '20 22:08 ptkpyitheim