Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to get detailed error report?

Jelena
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 19, 2019

I used bitbucket downloads REST API using curl. 

curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"target/output.jar"

But the problem is that I am getting anonymous errors  

"You can try again or contact support if the problem persists"

Is there any way to get detailed error report to fix the problem?

 

 

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2019

Hello, Jelena welcome to the Community!

Using CURL with REST API calls allows for additional options which can provide more information on your response and logging of your call. The best method to do with would be to add a flag to your call and output your call to a log. Here is an example of how your call should look:

curl -v -X POST --user "${BB_AUTH_STRING}""https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"target/output.jar" -o curllog.log

-v = verbose logging 

-o = Outputs to file

Please give this an attempt and let us know the results to find the response and possible cause of the failure.

Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events