You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
访问网页显示【500 Internal Server Error】
后台报错日志附上,Vercel和Docker报错是一样的。
[ERROR] 2024-05-11T11:44:16.097Z ad9238df-0118-41ca-9f7b-642759c9e5cc Exception on /search [GET]
Traceback (most recent call last):
File "/var/task/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "/var/task/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/var/task/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/var/task/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/var/task/asgiref/sync.py", line 254, in __call__
return call_result.result()
File "/var/lang/lib/python3.9/concurrent/futures/_base.py", line 439, in result
return self.__get_result()
File "/var/lang/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/var/task/asgiref/sync.py", line 331, in main_wrap
result = await self.awaitable(*args, **kwargs)
File "./app.py", line 26, in search
ddgs_gen = ddgs.text(keywords, safesearch='Off', timelimit='y', backend="lite")
File "/var/task/duckduckgo_search/duckduckgo_search.py", line 57, in text
return self._run_async_in_thread(super().text(*args, **kwargs))
File "/var/task/duckduckgo_search/duckduckgo_search.py", line 53, in _run_async_in_thread
result = future.result()
File "/var/lang/lib/python3.9/concurrent/futures/_base.py", line 446, in result
return self.__get_result()
File "/var/lang/lib/python3.9/concurrent/futures/_base.py", line 391, in __get_result
raise self._exception
File "/var/task/duckduckgo_search/duckduckgo_search_async.py", line 167, in text
results = await self._text_api(keywords, region, safesearch, timelimit, max_results)
File "/var/task/duckduckgo_search/duckduckgo_search_async.py", line 258, in _text_api
raise e
File "/var/task/duckduckgo_search/duckduckgo_search_async.py", line 253, in _text_api
await asyncio.gather(*tasks)
File "/var/task/duckduckgo_search/duckduckgo_search_async.py", line 229, in _text_api_page
resp_content = await self._aget_url("GET", "https://links.duckduckgo.com/d.js", params=payload)
File "/var/task/duckduckgo_search/duckduckgo_search_async.py", line 124, in _aget_url
raise RatelimitException(f"{resp.url} {resp.status_code} Ratelimit")
duckduckgo_search.exceptions.RatelimitException: https://links.duckduckgo.com/d.js?q=%E7%BE%8E%E5%9B%BD&kl=wt-wt&l=wt-wt&p=&s=0&df=y&vqd=4-265164403837274910116468914437927397460&ex=-2 202 Ratelimit
The text was updated successfully, but these errors were encountered:
访问网页显示【500 Internal Server Error】
后台报错日志附上,Vercel和Docker报错是一样的。
The text was updated successfully, but these errors were encountered: