Bitbucket code report

Hey

I wanted to try the new sentry code report pipe for bitbucket.
https://bitbucket.org/product/features/pipelines/integrations?p=sentryio/sentry-code-report

But I can not seem to get it to work. I always get a 403 error:

    Something went wrong!
BITBUCKET_PR_ID: 287 
BITBUCKET_COMMIT [REDACTED] 
BITBUCKET_WORKSPACE [REDACTED] 
BITBUCKET_REPO_SLUG [REDACTED] 
('Bitbucket request failed with status: 403', <Response [403]>)
Traceback (most recent call last):
  File "/usr/bin/insights.py", line 101, in <module>
    CodeInsights().generate_report()
  File "/usr/bin/insights.py", line 39, in generate_report
    results = self.fetch_diff()
  File "/usr/bin/insights.py", line 35, in fetch_diff
    raise Exception('Bitbucket request failed with status: {}'.format(results.status_code), results)
Exception: ('Bitbucket request failed with status: 403', <Response [403]>)

Any one who knows how I need to use it? Or if I need to take extra steps to get it to work?

Thanks in advance!
Edward

2 Likes

I’m having the same problem and have followed the instructions available on the project repo: https://bitbucket.org/sentryio/sentry-code-report/src/master/

Same problem for me.

It might sound a bit daft/obvious but when I was setting it up I used the project name instead of the organisation for some daft reason!

So just thought I’d mention that on the off chance!

I have double checked my org and project ids and am still seeing this same error when trying to use this pipe.