1. Bitbucket Website
  2. Public Issue Tracker
  3. master

Issues

Issue #2772 resolved

getting forbidden when trying to get issue via the API

alvasnet
created an issue

I'm try use your api http://confluence.atlassian.com/display/BBDEV/Issues

And get this error

C:\Downloads\curl-7.21.6-win64-ssl-sspi>curl https://api.bitbucket.org/1.0/repos itories/alvasnet/audio/issues/?limit=2 ====================================== curl: (60) SSL certificate problem, verify that the CA cert is OK. Details: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify faile d More details here: http://curl.haxx.se/docs/sslcerts.html

curl performs SSL certificate verification by default, using a "bundle" of Certificate Authority (CA) public keys (CA certs). If the default bundle file isn't adequate, you can specify an alternate file using the --cacert option. If this HTTPS server uses a certificate signed by a CA represented in the bundle, the certificate verification probably failed due to a problem with the certificate (it might be expired, or the name might not match the domain name in the URL). If you'd like to turn off curl's verification of the certificate, use the -k (or --insecure) option.

C:\Downloads\curl-7.21.6-win64-ssl-sspi>curl https://api.bitbucket.org/1.0/repos itories/alvasnet/audio/issues/?limit=2 -k ============================= Forbidden

I'm use http://curl.haxx.se/dlwiz/?type=bin&os=Win64

Comments (4)

  1. Dylan Etkin

    Hi,

    Are you still seeing the cert problem? Are you including your username and password to curl via the -u flag (ex. -u username:password) ?

    I see the response "Forbidden" but I believe it is because I do not have permission to see your issues.

    Cheers,

    Dylan

  2. Log in to comment