"Invalid redirect_uri This integration is misconfigured..." error when using BitBucket Cloud login to TeamCity OnPrem
Hi,
I have a teamcity onprem instance running 2023.11.1 (build 147412) with a connection to BitBucket Cloud defined in the root project.
TeamCity has no issues pulling with this credential and the webhook to BitBucket cloud works.
However when I try using that connection to enable BitBucket Cloud login into my TC instance I get "Invalid redirect_uri This integration is misconfigured. Contact the vendor for assistance." when it brings up the BitBucket Cloud page.
Please sign in to leave a comment.
Hi,
I am unable to reproduce this issue on my end. To help resolve this issue, could you kindly provide the network trace? You can follow the instructions here. For uploading large files, you can use https://uploads.jetbrains.com/. Please share the exact ID after the upload. For additional information on data security, refer to https://www.jetbrains.com/help/teamcity/feedback.html#Data+Security.
Hi Tom,
This is still an issue for me and this happens for any of the bitbucket cloud integrations. Please find the HAR file uploaded to upload jetbrains with the ID 2024_02_27_CxW7Hyj76Svw5QAzmHS1QG
Upon reviewing the HAR file, I observed only two records: one for the commit status publisher plugin and another for the token request. Both records returned a response status of 200. I couldn't find any information related to an invalid redirect_uri.
Could you please double-check to ensure that you have captured the relevant information and upload it again? Please share the exact ID after the upload.
Hi Tom.
I used fiddler this time and made sure it captured the call to bitbucket, however I still see a HTTP 200.
Upload id: 2024_03_01_22DUxGKEiAcviHMUCTrxvb (file: capture.saz)
Hi Chris,
Thank you for your response. I examined the Fiddler trace log and verified the correctness of the redirect URL, which seems accurate.
The reported redirect URL format is as follows:
However, I noticed there is a bug entry in our tracker: https://youtrack.jetbrains.com/issue/TW-46118/ - "Invalid redirect URI when using Bitbucket Cloud integration."
I attempted to reproduce the issue on my end using TeamCity 2023.11.3, but I can't reproduce it. If possible, could you please try it with the latest TeamCity Server version, which is currently 2023.11.3?
Hi Tom,
Thanks for confirming. I even updated to 11.4 and I still see the issue.
Hi Chris,
Is your TeamCity Server behind any reverse proxy?
The company has the Netskope proxy in place but I gathered those logs with the proxy off.
Thank you for your continued effort 😊
Your issue should be related to our tracker: https://youtrack.jetbrains.com/issue/TW-46118/ - "Invalid redirect URI when using Bitbucket Cloud integration."
Feel free to vote for this issue and monitor its progress through the provided link.