Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiffStat 403 (Forbidden) #24

Open
sebstr opened this issue Sep 18, 2021 · 1 comment
Open

DiffStat 403 (Forbidden) #24

sebstr opened this issue Sep 18, 2021 · 1 comment

Comments

@sebstr
Copy link

sebstr commented Sep 18, 2021

Hi

I authenticate with AppPasswordAuthentication.

GetRepositoryPullRequestsAsync works fine.

But both GetRepositoryPullRequestDiffStatAsync and GetRepositoryPullRequestDiffAsync gives me:
"Flurl.Http.FlurlHttpException: Call failed with status code 403 (Forbidden): GET https://bitbucket.org/!api/2.0/repositories/loansys_v2/reloansys.identityservice/pullrequests/963/diffstat ..."

Visiting that URL with a browser works fine. (logged in with the same username and password).
There is a redirect, though. Could that be the problem?

@claybrooks
Copy link

I am getting a 404, but really I would expect to be getting a 403 as well. The headers aren't being forwarded on redirect, based on inspecting my 404 response. This includes the auth header which is why we are getting 403/404.

For now, I'm manually handling this api call with redirect and header forwarding.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants