BadResponseCodeException on 'find related PRs' in CLion

Issue #71 resolved
Raphael Lackner created an issue

I tried to find the PR I created right now and I get an error with message like: 'Failed to lookup for PRs, please check the log and raise an issue.' The log is attached.

Comments (10)

  1. Daniil Penkin staff

    Hi @rala,

    Thanks for reporting this issue.

    From the log I can see that Bitbucket responded with 400 (Bad Request). Unfortunately I can't reproduce this problem with any repository that I have access to. Can you try calling the very same endpoint from your browser (being logged in) or grant me access to the repo in question so that I can do that? I'm interested in the JSON payload this error returns.

    In the future Linky should probably log the body in such cases...

    Cheers, Daniil

  2. Daniil Penkin staff

    Thanks for checking that @rala.

    I tracked it down on Bitbucket side, I need some time to clear out some details.

    Just out of curiosity, does the PR lookup UI work for that commit? Can you go to that commit view and click on Go to pull request link in the side menu, something like this: 2243bbe209eb — Bitbucket 2019-04-09 19-05-58.png

    It should show a dialog with a list of PRs or some message.

    Cheers, Daniil

  3. Raphael Lackner reporter

    We're crunching the numbers and should be done shortly. We're indexing the repository. (or sth like that) ... and now it works

  4. Daniil Penkin staff

    Ok, this means PR indexing was triggered, i.e. you requested PR lookup for that repo for the first time.

    Does Linky work now for that repo by any chance? It might be something with the initial state.

  5. Daniil Penkin staff

    Well, thank you, I appreciate your help!

    What you surfaced is that the bug seems to be not in Linky but rather in Bitbucket. Still need to fix it :) I'll leave this task open until I nail it down.

    Cheers, Daniil

  6. Log in to comment