-
-
Notifications
You must be signed in to change notification settings - Fork 526
Exception: Response status code is not 200. Response Status is 404 #230
Comments
i've fixed the problem but i have another problem code : from bardapi import Bard import requests Get your proxy url at crawlbase https://crawlbase.com/docs/smart-proxy/get/proxy_url = "[email protected]:8012" problem : During handling of the above exception, another exception occurred: Traceback (most recent call last): During handling of the above exception, another exception occurred: Traceback (most recent call last): |
how did you fix the "Exception: Response status code is not 200. Response Status is 404"? I am having the same issue |
The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot. A 404 status code only indicates that the resource is missing: not whether the absence is temporary or permanent. The HTTP 409 Conflict response status code indicates a request conflict with the current state of the target resource. Conflicts are most likely to occur in response to a PUT request. It seems there is a conflict with the local resources designated as a proxy server because the local server is unable to act as a proxy. I recommend using an appropriate proxy server. |
It looks like the problem is in the cookies: __Secure-1PSIDTS and __Secure-1PSIDCC values. It needs for usage and often changes it. |
This solved my problem (i.e., create a cookie dictionary and add values for __Secure-1PSIDTS and __Secure-1PSIDCC in addition to __Secure-1PSID)
|
I just tried this but I get an error indicating too many requests:
Any idea how I can get the API working? |
This works, but just temporarily, because __Secure-1PSIDTS and __Secure-1PSIDCC are frequently changing. |
Not sure if this is helpful but I found the thing that gave the 404 error:
|
my code :
from bardapi import Bard
token = '......'
bard = Bard(token=token)
bard.get_answer("hello")['content']
my problem :
Traceback (most recent call last):
File "c:\Users\neveu\OneDrive\Bureau\ay\test.py", line 4, in
bard = Bard(token=token)
File "C:\Users\neveu\AppData\Local\Programs\Python\Python310\lib\site-packages\bardapi\core.py", line 78, in init
self.SNlM0e = self._get_snim0e()
File "C:\Users\neveu\AppData\Local\Programs\Python\Python310\lib\site-packages\bardapi\core.py", line 149, in _get_snim0e
raise Exception(
Exception: Response status code is not 200. Response Status is 404
The text was updated successfully, but these errors were encountered: