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

[Bug] 签到失败:关于api://开头的地址的报错 #477

Closed
4 tasks done
8MiYile opened this issue Nov 11, 2023 · 1 comment
Closed
4 tasks done

[Bug] 签到失败:关于api://开头的地址的报错 #477

8MiYile opened this issue Nov 11, 2023 · 1 comment
Labels
bug Something isn't working todo

Comments

@8MiYile
Copy link

8MiYile commented Nov 11, 2023

Verify steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Latest 我已经使用 最新源码 测试过,问题依旧存在
  • Core 这是 QD 框架存在的问题,并非我所使用的 QD 早期版本(如 20210628及之前版号 等)或模板的特定问题
  • Meaningful 我提交的不是无意义的 催促更新或修复 请求

QD Version

20230821

Bug on OS

Linux

Bug on Platform

Code Build/Linux 64位

To Reproduce

Python环境是3.9.18
通过Pyenv启动
安装指令是

git -b 20230821 https://github.com/qd-today/qd ./core

在添加189Cloud后遇到如下错误

2023-11-11 10:47:31
日志:Failed at 5/20 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 599: Failed to connect to localhost port 8923: Connection refused,
Request URL: api://util/rsa?f=encode&key=-----BEGIN%20PUBLIC%20KEY-----{{pubKey|urlencode}}-----END%20PUBLIC%20KEY-----&data={{username|urlencode}}

Describe the Bug

就是 我尝试签到 提示了

Failed at 5/20 request,
Fail assert: {"re": "200", "from": "status"} from success_asserts,
Response Error : HTTP 599: Failed to connect to localhost port 8923: Connection refused,
Request URL: api://util/rsa?f=encode&key=-----BEGIN%20PUBLIC%20KEY-----{{pubKey|urlencode}}-----END%20PUBLIC%20KEY-----&data={{username|urlencode}}

QD config

#!/bin/bash
cd ./core
pyenv shell 3.9
python -V
env \
BIND="10.0.0.5" \
PORT="8923" \
AUTO_RELOAD="True" \
DB_TYPE="mysql" \
COOKIE_DAY="60" \
JAWSDB_MARIA_URL='mysql://qiandao:qiandao@127.0.0.1:3306/qiandao' \
python ./run.py

QD log

[W 231111 11:13:38 QD.Http.Fetcher fetcher:496] GET https://cloud.189.cn/api/portal/loginUrl.action?redirectURL=https%3A%2F%2Fcloud.189.cn%2Fweb%2Fredirect.html%3FreturnURL%3D%2Fmain.action [Warning] HTTP 302: Found                       
[W 231111 11:13:38 QD.Http.Fetcher fetcher:496] GET https://open.e.189.cn/api/logbox/oauth2/unifyAccountLogin.do?appId=cloud&version=v1.1&clientType=1&format=redirect&paras=*** [Warning] HTTP 302: Found
[W 231111 11:13:38 QD.Http.Fetcher fetcher:489] GET http://localhost:8923/util/rsa?f=encode&key=-----BEGIN%20PUBLIC%20KEY-----***-----END%20PUBLIC%20KEY-----&data=*** [Warning] HTTP 599: Failed to connect to localhost port 8923: Connection refused -> Try to retry!
[E 231111 11:13:38 QD.Http.Fetcher fetcher:493] Failed to connect to localhost port 8923: Connection refused
[E 231111 11:13:38 QD.Web.Handler task:201] taskid:1 tplid:1 failed! 0.4794s
    Failed at 5/20 request,
    Fail assert: {"re": "200", "from": "status"} from success_asserts,
    Response Error : HTTP 599: Failed to connect to localhost port 8923: Connection refused,
    Request URL: api://util/rsa?f=encode&key=-----BEGIN%20PUBLIC%20KEY-----{{pubKey|urlencode}}-----END%20PUBLIC%20KEY-----&data={{username|urlencode}}                                                                                       
[I 231111 11:13:38 tornado.access web:2344] 200 POST /task/1/run (10.0.0.1) 451.91ms

Expected behavior

不知道是哪方面的问题,或者如果可以的话,下个版本不要再使用localhost了

Screenshots

No response

@8MiYile 8MiYile added the bug Something isn't working label Nov 11, 2023
@8MiYile 8MiYile changed the title [Bug] [Bug] 签到失败:关于api://开头的地址的报错 Nov 11, 2023
@8MiYile
Copy link
Author

8MiYile commented Nov 11, 2023

关于Localhost的问题 BIND修改成0.0.0.0就解决了,但若有必要,请将localhost改成与bind同步 在bind的地址非0.0.0.0和127.0.0.1的时候,自动跟随

@a76yyyy a76yyyy added the todo label Nov 11, 2023
acooler15 added a commit to acooler15/qd that referenced this issue Jan 21, 2024
acooler15 added a commit to acooler15/qd that referenced this issue Jan 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working todo
Projects
None yet
Development

No branches or pull requests

2 participants