Comments (27)
I did a little debug, and I think I've found the bug: just remove br
from accept-encoding
header.
explanation:
- AFAICT requests doesn't handle brotli
- bing doesn't actually use brotli so it's fine if you're using your own cookie
- but the shared service will
from edgegpt.
python3 -m EdgeGPT
I re-pip the moduel ,but I still met this error, that's so bad
from edgegpt.
I did a little debug, and I think I've found the bug: just remove br from accept-encoding header.
Thanks! it worked!
from edgegpt.
I did a little debug, and I think I've found the bug: just remove
br
fromaccept-encoding
header.
Works for me
from edgegpt.
I also met this problem
from edgegpt.
raceback (most recent call last): File "/Users/leolrg/Library/Python/3.9/lib/python/site-packages/requests/models.py", line 971, in json return complexjson.loads(self.text, **kwargs) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/__init__.py", line 346, in loads return _default_decoder.decode(s) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/leolrg/Downloads/EdgeGPT/src/EdgeGPT.py", line 135, in __init__ self.struct = response.json() File "/Users/leolrg/Library/Python/3.9/lib/python/site-packages/requests/models.py", line 975, in json raise RequestsJSONDecodeError(e.msg, e.doc, e.pos) requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/leolrg/Downloads/EdgeGPT/src/EdgeGPT.py", line 293, in <module> asyncio.run(main()) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/asyncio/base_events.py", line 642, in run_until_complete return future.result() File "/Users/leolrg/Downloads/EdgeGPT/src/EdgeGPT.py", line 254, in main bot = Chatbot() File "/Users/leolrg/Downloads/EdgeGPT/src/EdgeGPT.py", line 203, in __init__ self.chat_hub: ChatHub = ChatHub(Conversation()) File "/Users/leolrg/Downloads/EdgeGPT/src/EdgeGPT.py", line 137, in __init__ raise Exception( TypeError: __init__() missing 3 required positional arguments: 'msg', 'doc', and 'pos'
#2 let‘s see this issue,it solve the same problem
from edgegpt.
let‘s see this issue,it solve the same problem
No that one is the old version where you need your own Cookies.
from edgegpt.
run python -m EdgeGPT "MY_COOKIES" and get same as error above.
You ran into the same problem even with your own cookies that has beta access?
from edgegpt.
it may be solved if you get access ,I guess; I have joined the waitlist,too. And I met the same problem
from edgegpt.
it may be solved if you get access ,I guess; I have joined the waitlist,too. And I met the same problem
The new version is supposed to use someone else's shared account that has the beta access so we do not need to use our own cookies.
from edgegpt.
it may be solved if you get access ,I guess; I have joined the waitlist,too. And I met the same problem
The new version is supposed to use someone else's shared account that has the beta access so we do not need to use our own cookies.
oh I know,is 'python -m EdgeGPT' ?I try it and met the same error ,too. Yes, there may be other reasons
from edgegpt.
Hello. The reason is because it didn't update properly
from edgegpt.
You have to completely uninstall it and reinstall
pip3 uninstall EdgeGPT
pip3 install EdgeGPT
from edgegpt.
Python caches are weird
from edgegpt.
run python -m EdgeGPT "MY_COOKIES" and get same as error above.
This means your cookies aren't valid. Just run it as python3 -m EdgeGPT
without any other agruments
from edgegpt.
You have to completely uninstall it and reinstall
pip3 uninstall EdgeGPT
pip3 install EdgeGPT
Didn't work. I even downloaded the repository and use it instead of the pip version but got the same error.
from edgegpt.
Didn't work. I even downloaded the repository and use it instead of the pip version but got the same error.
git clone https://github.com/acheong08/EdgeGPT
cd EdgeGPT
pip3 install .
Is that how you did it?
from edgegpt.
Is that how you did it?
I download the repository and
cd EdgeGPT/src
python3 EdgeGPT.py
from edgegpt.
Yeah, don't do that. Just pip3 install .
inside the directory and python3 -m EdgeGPT
If you have it cloned, remember to git pull
from edgegpt.
I update very frequently so always update to the latest version
from edgegpt.
I did a little debug, and I think I've found the bug: just remove
br
fromaccept-encoding
header.explanation:
- AFAICT requests doesn't handle brotli
- bing doesn't actually use brotli so it's fine if you're using your own cookie
- but the shared service will
i have tried it ,but it still not works,is it my error?
from edgegpt.
Are you using your own cookie? are you still on the waitlist?
from edgegpt.
Are you using your own cookie? are you still on the waitlist?
i use the public server,Without a cookie
from edgegpt.
Are you using your own cookie? are you still on the waitlist?
i use the public server,Without a cookie
Try my fork (or wait for my pr to be merged), should have a more informational exception output
https://github.com/Jimmy-Z/EdgeGPT
from edgegpt.
Are you using your own cookie? are you still on the waitlist?
i use the public server,Without a cookie
Try my fork (or wait for my pr to be merged), should have a more informational exception output https://github.com/Jimmy-Z/EdgeGPT
thanks,it works
from edgegpt.
I did a little debug, and I think I've found the bug: just remove
br
fromaccept-encoding
header.Works for me
That's interesting. Might be a difference in our request versions. I'm fixing now
from edgegpt.
from edgegpt.
Related Issues (20)
- websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200 HOT 8
- KeyError: 'suggestedResponses' HOT 1
- asyncio.exceptions.TimeoutError HOT 2
- [Bug]: server rejected WebSocket connection: HTTP 200 HOT 18
- [Bug]: Exception: Authentication failed. You have not been accepted into the beta. HOT 10
- Preserve conversation before it deletes it and says "sorry, i cant give a response to that". HOT 1
- [Bug]: Have a problem from example in README.md HOT 5
- CaptchaChallenge: User needs to solve CAPTCHA to continue HOT 1
- Facing this over server like railway & heroku
- BingImageCreator.py request_id = redirect_url.split("id=")[-1]为空
- [Bug]: Exception: UnauthorizedRequest: Cannot retrieve user status.
- [Bug]: cannot import name 'Chatbot' from 'EdgeGPT' HOT 2
- [Bug]: websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200 when I use the script on a server HOT 7
- [Bug]: run EdgeGPT with flask HOT 3
- [Bug]: AttributeError: “list’ object has no attribute ‘startswith’” HOT 2
- Exception has occurred: Exception Authentication failed. You have not been accepted into the beta. HOT 6
- EdgeGPT可以使用用户名密码登陆吗
- [Bug]: Websocket init, HTTP 101 request, server response HTTP 200 HOT 4
- [Bug]: Invalid Captcha Response HOT 4
- [Bug]: websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 200
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edgegpt.