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

Login to Bitbucket stop to work #144

Open
ivangusev opened this issue May 4, 2021 · 15 comments
Open

Login to Bitbucket stop to work #144

ivangusev opened this issue May 4, 2021 · 15 comments

Comments

@ivangusev
Copy link

ivangusev commented May 4, 2021

Please fix, currently it throws "Can not login, please check your username and password."

In Chrome logs:
Access to XMLHttpRequest at 'https://bitbucket.org/site/oauth2/access_token' from origin 'chrome-extension://lfjcgcmkmjjlieihflfhjopckgpelof' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.

@shaniceweiwei
Copy link

same issue

@leonhartX
Copy link
Owner

umm, maybe bitbucket's API has some changes,will take some time to look at this

@steeleCoding
Copy link

Also Same issue

@ashraftalib
Copy link

@leonhartX

I logged out from SCM. Now I am not able to login from SCM and getting the below message:
"Can not login, please check your username and password."
Login issue from SCM to Bitbucket

@leonhartX
Copy link
Owner

did some investigation, the bitbucket API https://bitbucket.org/site/oauth2/access_token itself is still fine, but it doesn't respond to the OPTIONS preflight request correctly and return a 500, so chrome stop sending the real POST request

I'm not sure what we can do for that since we can not bypass CORS in chrome

@ashraftalib
Copy link

@leonhartX

I used an extension: https://chrome.google.com/webstore/detail/cors-unblock/lfhmikememgdcahcdlaciloancbhjino in chrome to login to SCM and now I am able to login SCM but still there is an issue :

"[github assistant] TypeError: Cannot read property 'forEach' of undefined"

And not able to get all projects repository in SCM.
Error in new UI of GAS while fetching Bitbucket

@leonhartX
Copy link
Owner

@ashraftalib this may related to the Apps Script API not enabled
see #135

@ashraftalib
Copy link

@leonhartX
I already enabled Apps Script API but still the same issue I am getting.
API Enabled already

@ivangusev
Copy link
Author

@leonhartX So it's error on bitbucket server side. Can you try to submit an issue to bitbucket? Your addon is very popular and has no alternative, so i guess they would put more attention to the issue.

@nattila1
Copy link

nattila1 commented May 26, 2021

@ashraftalib this may related to the Apps Script API not enabled
see #135

No, it is not related to API. Event though API is enabled to me, I always get the same error: "TypeError: Cannot read property 'forEach' of undefined"
I think #144, #145, #146 are same issues.

@zensarCompass
Copy link

I am also facing this issue. Is someone from the team working on this?

@leonhartX
Copy link
Owner

Hey guys, does the issue still exist?
I check it today and found bitbuckt works again without any CORS issue (maybe they fixed it)

@GGRJP
Copy link

GGRJP commented Jan 15, 2022

Hi All,

The SCM login for Bitbucket is still not working. Do we have any updates on this issue?

@cbhouston
Copy link

Still same issue for me, cannot login BitBucket

@Shaws-WD
Copy link

Shaws-WD commented Feb 4, 2023

the problem persists with CORS issue preventing bitbucket login :-)
I am trying gas-github for the first time. I would love to use it but can't login to bitbucket

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

10 participants