Unable to Upload dSYM via Curl

Motz

Posted on
Dec 20 2016

I am trying to curl upload the dsym in bitrise to raygun. I get an "invalid dDSYM" message even though I could drag and drop it into the browser.

curl -H 'Host: app.raygun.com' -H 'Authorization: Basic token' --form DsymFile=/Users/vagrant/deploy/appname.app.dSYM.zip https://app.raygun.com/dashboard/appid/settings/symbols

% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed

0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 241 100 50 100 191 183 702 --:--:-- --:--:-- --:--:-- 702

{"Status":"Failure","Message":"Invalid dSYM file"}|

This also happens if I do it via terminal. Am I doing something wrong?


Motz

Posted on
Dec 20 2016

Ahhh, i found another thread now. and need a @ before the file name..

https://raygun.com/forums/thread/30763

Could the docs be updated it was a bit difficult to figure out that i need to create my own base 64 for my username/password as I thought the external API key would do this.


Jason Fauchelle

Raygun

Posted on
Dec 21 2016

Hi Motz,

Great to hear you found the solution. Here's the documentation about uploading dSYM files via cURL which describes how to generate the Basic auth token directly below the cURL example. This could certainly do with some formatting to make it more clear. https://raygun.com/docs/languages/ios#dsym

If you were following some other documentation for uploading dSYM files via cURL, please let me know the link to it so that I can update that too.

-Jason Fauchelle


Motz

Posted on
Dec 21 2016

Looks good, I see it now with the @ at the bottom of that post. I was looking at this blog post: https://raygun.com/blog/2014/05/jenkins-dsym-upload-to-raygun/

I got it working via terminal locally. I then went and created a Bitrise step for automation: https://www.bitrise.io/integrations that you can find there when searching. Source code here: https://github.com/jamesmontemagno/bitrise-step-raygun-dsym-upload :) very nice now.


Jason Fauchelle

Raygun

Posted on
Dec 21 2016

Hi Motz,

Thanks for mentioning where you were looking at the dSYM upload via cURL docs, and for creating a Bitrise extension!

Let us know anytime you have further questions about Raygun.

-Jason Fauchelle


Reply