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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.