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

Error authenticating with Bitbucket 404 #77

Open
aparker-cityworks opened this issue Jan 16, 2025 · 3 comments
Open

Error authenticating with Bitbucket 404 #77

aparker-cityworks opened this issue Jan 16, 2025 · 3 comments

Comments

@aparker-cityworks
Copy link

I'm trying to connect to Bitbucket datacenter. It is version v8.19.13.
I try to authenticate and I get an error
[2025-01-16 00:09:49:192] Error: Error authenticating with Bitbucket: AxiosError: Request failed with status code 404 [2025-01-16 00:09:49:193] Error: Authentication error: Error authenticating with Bitbucket: AxiosError: Request failed with status code 404

To Reproduce
Steps to reproduce the behavior:

  1. In Atlassian Setting click Bitbucket tab
  2. Click Add Custom Bitbucket site
  3. Enter my base url https://bitbucket.mycompany.tools
  4. Enter my Personal Access Token
  5. Click Save site
  6. Error

Expected behavior
I would expect it to authenticate successfully.

Environment and Version (please complete the following information):

  • Atlassian Plugin Version (3.2.2)
  • Visual Studio Code Version (1.96.3)
  • Is this a local or cloud environment? (Local)
  • If Local, OS (macOS)
@bwieger-atlassian-com
Copy link
Collaborator

@aparker-cityworks, can you confirm that you are on VPN when trying to authenticate?

I am assuming your company protects its stuff behind a VPN.

@aparker-cityworks
Copy link
Author

@bwieger-atlassian-com No, I am not on VPN. I can access Bitbucket in a browser without a VPN. Authentication is done through Okta in a browser.

I am trying to use a Personal Access Token to login in VS Code.
I have successfully used the same Personal Access Token to authenticate using the Gitkraken application, so I know it's possible.

@aparker-cityworks
Copy link
Author

@bwieger-atlassian-com , I had a person from our cloud tools team look at this. Here is his response:

looks like a plugin issue so far
Logs from the extension, sending in a contenttype of undefined for the first request, and the second URL does not seem to be valid - we might have to compare the version of Bitbucket they tested and our version.

[2025-01-17 00:42:44:662] Error while creating agent Error: ENOENT: no such file or directory, open 'bitbucket.mycompany.tools'
[2025-01-17 00:42:44:664] ----------------------------------------------------------------------
[2025-01-17 00:42:44:664] curl -X GET -H "Accept:application/json, text/plain, /" -H "Content-Type:undefined" -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Authorization:Bearer ***" "https://bitbucket.mycompany.tools/rest/api/latest/build/capabilities"
[2025-01-17 00:42:44:664] ----------------------------------------------------------------------
[2025-01-17 00:42:44:942] Error while creating agent Error: ENOENT: no such file or directory, open 'bitbucket.mycompany.tools'
[2025-01-17 00:42:44:942] ----------------------------------------------------------------------
[2025-01-17 00:42:44:942] curl -X GET -H "Accept:application/json, text/plain, /" -H "Content-Type:application/json" -H "User-Agent:atlascode/2.x axios/0.19.2" -H "X-Atlassian-Token:no-check" -H "Authorization:Bearer ***" "https://bitbucket.mycompany.tools/rest/api/1.0/users/My_Name%40Mycompany.com"
[2025-01-17 00:42:44:942] ----------------------------------------------------------------------
[2025-01-17 00:42:45:138] Error: Error authenticating with Bitbucket: AxiosError: Request failed with status code 404
[2025-01-17 00:42:45:138] Error: Authentication error: Error authenticating with Bitbucket: AxiosError: Request failed with status code 404'''

Is this plugin designed to work in LTS version v8.19.13?

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