Skip to content
This repository has been archived by the owner on Apr 24, 2024. It is now read-only.

Commit

Permalink
Update README_FAQ.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dsdanielpark authored Oct 26, 2023
1 parent b213d02 commit 34f8f0b
Showing 1 changed file with 32 additions and 4 deletions.
36 changes: 32 additions & 4 deletions documents/README_FAQ.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ Development Status :: 5 - Production/Stable

## Troubleshooting Google Account-Related Issues with Bard API

### 1 Response Error
<br>

### 1. Response Error
```python
Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59],
[\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'.
Expand All @@ -35,7 +37,9 @@ The error you're experiencing isn't originating from the package itself; it's re

Please let me know if you need further assistance.

### 2 Response Status is 429
<br>

### 2. Response Status is 429

```
Traceback (most recent call last):
Expand All @@ -54,9 +58,33 @@ Both are not package-related issues and are unsolvable problems. It is recommend
- `CAPTCHA`: a program or system intended to distinguish human from machine input, typically as a way of [thwarting](https://www.google.com/search?sca_esv=573532060&sxsrf=AM9HkKmd5Faz1q0x4sLsgIG3VgVR9V18iA:1697335053753&q=thwarting&si=ALGXSlbSiMNWMsv5Y0U_0sBS8EWzwSlNZdPczeDdDqrhgxYO86hMDzIqBVTJp6ZKxKdXeVsCSihVIJAH_MROqwPM7RtQB0OoEA%3D%3D&expnd=1) spam and automated extraction of data from websites.
- `The HTTP 429`: Too Many Requests response status code indicates the user has sent too many requests in a given amount of time ("rate limiting")

<br>

### 3 Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. #155
### 3. Exception: SNlM0e value not found. Double-check __Secure-1PSID value or pass it as token='xxxxx'. #155
- https://github.com/dsdanielpark/Bard-API/issues/155

### 4 Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59],[\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'. \nTemporarily unavailable due to traffic or an error in cookie values. Please double-check the cookie values and verify your network environment. #128
<br>

### 4. Response Error: b')]}\\'\\n\\n38\\n[[\"wrb.fr\",null,null,null,null,[8]]]\\n54\\n[[\"di\",59],[\"af.httprm\",59,\"4239016509367430469\",0]]\\n25\\n[[\"e\",4,null,null,129]]\\n'. \nTemporarily unavailable due to traffic or an error in cookie values. Please double-check the cookie values and verify your network environment. #128
- https://github.com/dsdanielpark/Bard-API/issues/128

<br>

### 5. Using Proxy
If you cannot receive a normal response in your area, try making the request through [Crawlbase](https://crawlbase.com/)'s anonymous [smart proxy service.](https://crawlbase.com/docs/smart-proxy/get/) (Still, be mindful of Google's rate limiting, so adjust the time between requests and avoid requesting duplicate responses.)

```
$ pip install bardapi
```

```python
from bardapi import Bard
import requests

# Get your proxy url at crawlbase https://crawlbase.com/docs/smart-proxy/get/
proxy_url = "http://xxxxxxxxxxxxxx:@smartproxy.crawlbase.com:8012"
proxies = {"http": proxy_url, "https": proxy_url}

bard = Bard(token='xxxxxxx', proxies=proxies, timeout=30)
bard.get_answer("나와 내 동년배들이 좋아하는 뉴진스에 대해서 알려줘")['content']
```

0 comments on commit 34f8f0b

Please sign in to comment.