-
Notifications
You must be signed in to change notification settings - Fork 10
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
ERR_CHALLENGE error ? #22
Comments
Same thing, apparently they resist automatic requests now |
They probably fixed auto bot like requests. So, you failed captcha test. |
Any updates on this? Here is my raw response: {"action":"error","status":418,"type":"ERR_CHALLENGE","overrideCode":"b46b","cd":{"cc":"duckchat","e":0,"er":null,"gk":0,"i":"3","iadb":1,"o":"pTHF7sUYy4pHMYhsbUeoeppLNdGPzHhRBRU0wj56nm6MSgYA5Hjumqwvz1FDXEnK%0A","p":"eefbca2019c84d259e4855e7d3b94a85-6cc56ef6960946b7b63c0250878e085e-cbde47337b1642ffb87a097633bd95f5-680872170de9477d9fde180d3b6eabd7-189bb05e30d14d9fa5954255fec981f5-5985cbeac86a47e0a8986197ca42e027-2cf1c84b886c4c339792bd8029da27bc-68b1202301f9410fb071405447975abb-720d685b76ac4756a2055ac8fa9bfb46","q":"","r":"use","s":"aichat","sc":1}} |
Nope! i don't think so, because they said they would allow third party clients to access the thing. async def create_custom_session():
return aiohttp.ClientSession(
headers={"User-Agent": "DuckChat Client",
"Connection": "keep-alive",
"Cookie": "yourcookies",
"x-vqd-4": "idk_what_this_is_for_its_probably_server_side_session_tracking"
},
timeout=aiohttp.ClientTimeout(total=30)
)
custom_session = await create_custom_session()
try:
chat = DuckChat(session=custom_session)
answer = await chat.ask_question(prompt)
return answer
finally:
await custom_session.close() but when i tried using a real browser-alike UA "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" i would get the ERR_CHALLENGE again. |
I always see: ERR_CHALLENGE
... maybe from: duck_chat/duck_chat/api.py line 110: raise DuckChatException(err_message) but i don't see that error in the repo?
... or duck_chat, i see:
... or using code example:
... i see:
The text was updated successfully, but these errors were encountered: