2

I'm trying to upload a ipa file to saucelabs storage but getting the error as mentioned above.

The command that I'm using -

$ curl -F 'payload=@/Users/<user-name>/Downloads/<file_name>.ipa' -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY"  'https://api.us-west-1.saucelabs.com/v1/storage/upload'

I'm on mac. I've seen the questions on stackoverflow but none of them answers.

Alohomora
  • 147
  • 1
  • 9

1 Answers1

0

There might be a problem escaping your path. For me your command works, if the file is correct (I get an unauthorized of course). (curl 7.64.1)

Try your command from the Downloads folder:

cd /Users/<user-name>/Downloads
curl -F @<file_name>.ipa -F name=<file_name>.apk -u "$SAUCE_USERNAME:$SAUCE_ACCESS_KEY"  'https://api.us-west-1.saucelabs.com/v1/storage/upload'

You may have to escape characters in your filename. Tip: You can also try drag and drop the file form finder to Terminal while the cursor is at the point where the filename is. Terminal will escape those automatically.

sja
  • 1,362
  • 1
  • 12
  • 18