Skip to content
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

请求代理时,返回500错误 #218

Open
wwf1227 opened this issue Jul 26, 2024 · 0 comments
Open

请求代理时,返回500错误 #218

wwf1227 opened this issue Jul 26, 2024 · 0 comments
Assignees
Labels

Comments

@wwf1227
Copy link

wwf1227 commented Jul 26, 2024

172.16.2.136 - - [2024-07-26 08:50:23] "GET /random HTTP/1.1" 500 426 0.002383
proxypool | [2024-07-26 08:50:51,941] ERROR in app: Exception on /random [GET]
proxypool | Traceback (most recent call last):
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/app.py", line 2447, in wsgi_app
proxypool | response = self.full_dispatch_request()
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/app.py", line 1952, in full_dispatch_request
proxypool | rv = self.handle_user_exception(e)
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/app.py", line 1821, in handle_user_exception
proxypool | reraise(exc_type, exc_value, tb)
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/_compat.py", line 39, in reraise
proxypool | raise value
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/app.py", line 1950, in full_dispatch_request
proxypool | rv = self.dispatch_request()
proxypool | File "/root/.local/lib/python3.7/site-packages/flask/app.py", line 1936, in dispatch_request
proxypool | return self.view_functionsrule.endpoint
proxypool | File "/app/proxypool/processors/server.py", line 19, in decorator
proxypool | return func(*args, **kwargs)
proxypool | File "/app/proxypool/processors/server.py", line 70, in get_proxy
proxypool | return conn.random().string()
proxypool | File "/app/proxypool/storages/redis.py", line 69, in random
proxypool | return convert_proxy_or_proxies(choice(proxies))
proxypool | File "/app/proxypool/utils/proxy.py", line 66, in convert_proxy_or_proxies
proxypool | host, port = data.split(':')
proxypool | ValueError: too many values to unpack (expected 2)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants