Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

EdgeGPT.NotAllowedToAccess: Sorry, you need to login first to access this service. #329

Closed
ronrozenberg opened this issue Apr 22, 2023 · 19 comments
Assignees

Comments

@ronrozenberg
Copy link

I tried anything I could think of, but this still dosen't work. I am signed into my Microsoft account. Can anyone help?

@github-actions
Copy link

Automated:
👋 Thanks for reporting this issue. @acheong08 will review it shortly. In the meantime, please check to see if there are any similar issues already closed.

@cande1gut
Copy link

cande1gut commented Apr 24, 2023

@ronrozenberg You need to get the cookies out of the Edge browser. You can do it directly from that browser or you can install an add-on such as User-Agent Switcher and Manager for Chrome. When installed, you have to use it to change the browser to Edge and export the cookies. You can do it manually or through another add-on like Cookie-Editor for Chrome.

@ronrozenberg
Copy link
Author

Hey, the cookies were extracted from Edge.

@ronrozenberg
Copy link
Author

ronrozenberg commented Apr 24, 2023

I did extract the cookies from Edge

@cande1gut
Copy link

Could be that you are not correctly loading the cookies.

@ronrozenberg
Copy link
Author

Well I set up an environment variable (windows) pointing out to the cookies file. Tried to change it, once signed in, once not, once through chrome but still the same error each time.

@WangYijun-OUC
Copy link

did u fix that?I still got that problem.

@ronrozenberg
Copy link
Author

Nope.

@acheong08
Copy link
Owner

It won't work from Chrome. Cookies should come from Edge.

@ronrozenberg
Copy link
Author

But the cookies are from Edge........

@acheong08
Copy link
Owner

Hmm that's strange. I have no idea on this one

@acheong08
Copy link
Owner

Are you signed in to multiple Microsoft accounts?

@acheong08
Copy link
Owner

Try clearing your cookies and logging in again

@ronrozenberg
Copy link
Author

I will try again later and if it doesn't work I will try on a windows vm to see if my computer is the problem

@jihanyang
Copy link

You need to specify your cookie_path in Chatbot such as bot = Chatbot(cookie_path='./cookies.json')

@ronrozenberg
Copy link
Author

Thanks that fixed it :D

@beijingtl
Copy link

Same issue for me. I login with Edge again and export a new cookie setting, then copy to the COOKIE_FILE, and it works. All the reasons is cookie information expire, you have to update it manually. Hope it workds for U.

@jl5770
Copy link

jl5770 commented May 12, 2023

I am having this issue as well, but seemingly at random: I will get the EdgeGPT.NotAllowedToAccess: Sorry, you need to login first to access this service. error, sometimes several times in a row, but then it will work about 1/3 of the time (without making any changes to the cookie file). Any idea what could be causing this? Sorry, I am a very amateur programmer without a lot of experience

@cameronj86
Copy link

cameronj86 commented May 13, 2023

It seems redundant, but definitely make sure you are logged into your MS acct when you grab the cookie info.

I have a user-agent switcher extension from prior to trick Bing into thinking I was using a Chrome browser when I was using the website instead of the CLI, and didn't force a log-in, so it was easy to overlook.

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

No branches or pull requests

8 participants