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

WEB端怎么登不上呀 #514

Open
Hr-byte-art opened this issue Oct 16, 2024 · 3 comments
Open

WEB端怎么登不上呀 #514

Hr-byte-art opened this issue Oct 16, 2024 · 3 comments

Comments

@Hr-byte-art
Copy link

WEB端登不上,有没大佬可以指导一下

@laowu20
Copy link

laowu20 commented Nov 9, 2024

我也登不上。浏览器报错127.0.0.1 拒绝了我们的连接请求。qq群里的py12306常见文件排查的文档挂了。

@HowardYann
Copy link

image

@liujunfeng0394
Copy link

liujunfeng0394 commented Jan 3, 2025

改成 if name != 'main': 又报错了
File "D:\obj\python\py12306\py12306\web\web.py", line 44, in run
self = cls()
File "D:\obj\python\py12306\py12306\helpers\func.py", line 30, in singleton_new
it.init_original(*args, **kw)
File "D:\obj\python\py12306\py12306\web\web.py", line 25, in init
self.register_blueprint()
File "D:\obj\python\py12306\py12306\web\web.py", line 36, in register_blueprint
self.session.register_blueprint(user)
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\scaffold.py", line 47, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\app.py", line 595, in register_blueprint
blueprint.register(self, options)
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\blueprints.py", line 335, in register
deferred(state)
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\blueprints.py", line 434, in
lambda s: s.add_url_rule(
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\blueprints.py", line 110, in add_url_rule
self.app.add_url_rule(
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\scaffold.py", line 47, in wrapper_func
return f(self, *args, **kwargs)
File "C:\Users\goodj\AppData\Local\Programs\Python\Python310\lib\site-packages\flask\sansio\app.py", line 657, in add_url_rule
raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: user.wrapper

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

No branches or pull requests

4 participants