binary-husky / binary-husky/gpt_academic
[Feature]: 联网搜索报错
- Dominant language
- Python
- Stars
- 71.3k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Class | 类型
函数插件
### Feature Request | 功能请求
已配置代理,报错信息如下:
[Local Message] 插件调用出错:
Traceback (most recent call last):
File ".\toolbox.py", line 221, in decorated
yield from f(main_input, llm_kwargs, plugin_kwargs, chatbot_with_cookie, history, *args, **kwargs)
File ".\crazy_functions\Internet_GPT.py", line 211, in 连接网络回答问题
urls = searxng_request(txt, proxies, categories, searxng_url, engines=engines)
File ".\crazy_functions\Internet_GPT.py", line 165, in searxng_request
raise ValueError("在线搜索失败,状态码: " + str(response.status_code) + '\t' + response.content.decode('utf-8'))
ValueError: 在线搜索失败,状态码: 405
405 Not Allowed
405 Not Allowed
nginx/1.11.2
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in crazy_functions/Internet_GPT.py, especially searxng_request and 连接网络回答问题, using the reported 405 response and configured proxy as the reproduction case. Trace the request path and verify that online search no longer fails with the reported status code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100