Comments (8)
I finally figured it out. Bing no longer sends the signature in the response content, but in the response header inside X-Sydney-EncryptedConversationSignature. I now use my own solution to communicate with Bing, but the communication principle is more or less the same as with the Bing API here, with the modifications for the signature the Bing API should work again. At least I already could test it successfully in my implementation. :)
from bingchat.
@hswlab Thank you, noted this for work once I'll get to next pass of RE and fixes! (currently busy with another project)
from bingchat.
@neon-sunset I just added a pull request #41
from bingchat.
@hswlab I already know how to obtain a signature, but how should I use it in new communication methods?
from bingchat.
@chinazhaoht For websocket request with ChatHub, this string is currently set in the URL parameter of sec_access_token.
wss://sydney.bing.com/sydney/ChatHub?sec_access_token=TheSignature
If you use the Bing API, you have to wait until the code in the API is customized. @gunpal5 seems to have already an update for this issue. :)
from bingchat.
I used the signature in the X-Sydney-Encryptedconversationsignature header from the create conversation response, URL-encoded it, and passed it as the sec_access_token to the chathub interface, but the chathub still returns "unauthorized request" and "chathub not authorized".
from bingchat.
@chinazhaoht save your time and use this PR: #41
from bingchat.
@gunpal5 Thank you, I have already solved this problem.
from bingchat.
Related Issues (20)
- Cookie no longer Required HOT 2
- Publish BingChat.Cli as tool to nuget HOT 1
- 404 Not found error while creating new conversation. HOT 6
- Question repeated in CLI reply HOT 2
- CLI reply missing source attributions HOT 2
- Cli reply text overlap HOT 3
- Can't read normally CookieFilePath From Cookie Editor HOT 4
- Timout until chat session expires? HOT 2
- Captcha Challenge HOT 2
- Number of requests left in a chat session? HOT 1
- request option to have results returned in json format HOT 1
- CaptchaChallenge: User needs to solve CAPTCHA to continue. HOT 8
- UnauthorizedRequest:I can ask 1 to 5 questions, but I can't ask any more after that. Why? HOT 1
- Project maintenance status
- CLI The server returned status code '200' when status code '101' was expected. HOT 3
- BingChat.BingChatException HResult=0x80131500 Message=UnauthorizedRequest: The conversationSignature is not set and is required to ensure that you have permission to use our APIs. IsAuthenticated=False. App ID= Source=BingChat HOT 1
- CaptchaChallange without _U Cookie? HOT 2
- Run sample code throw The server returned status code '200' when status code '101' was expected
- Net Framework
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 bingchat.