GithubHelp home page GithubHelp logo

panunlock's People

Contributors

hbc007 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

dayxin1

panunlock's Issues

CentOS7 修改一次panunlock.py后 再次启动flask nginx出现499错误 电脑客户端一直接收数据错误(2)

第一次直接启动 flask 很正常 电脑版能使用
nginx设置如下

server {
        listen       80;
        server_name pandownload.com pandownw.linesoft.top;
        location / {
            proxy_redirect off;
            proxy_set_header Host $host;
            proxy_set_header X-Real-IP $remote_addr;
            proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
            proxy_pass http://localhost:20415;  
        }
}

修改panunlock.py 返回字符串部分
图片

@app.route("/set/r/40")
"title": "** LYHNMSL**", "message": "**What\'s your problem**", 
@app.route("/api/latest")
 "detail":"字符串"

再次启动flask发现 电脑客户端 接受数据失败(2) 且flask接收不到 api/init/请求

将所有文件还原 重启系统 重启nginx flask还是不能解决
打开nginx日志 发现499 错误
112.***.**.** - - [01/May/2020:13:**:59 +0800] "GET /api/init?clienttype=0&referral=&t=1588311719&version=2.2.2 HTTP/1.1" 499 0 "-" "PanDownload/2.2.2" "-"
正常应为
112.***.**.** - - [01/May/2020:13:**:** +0800] "GET /api/init?clienttype=0&referral=&t=1588311119&version=2.2.2 HTTP/1.1" 200 950 "-" "PanDownload/2.2.2" "-"
故在nginx配置添加proxy_ignore_client_abort on; 解决499错误
nginx日志为
"GET /api/init?clienttype=0&referral=&t=1588312099&version=2.2.2 HTTP/1.1" 200 0 "-" "PanDownload/2.2.2" "-" 正常为200 950 现在变成了200 0

flask 日志能接收到请求
127.0.0.1 - - [01/May/2020 14:13:26] "GET /api/init?clienttype=0&referral=&t=1588313606&version=2.2.2 HTTP/1.0" 200 - 看不出什么问题

重启系统 重启nginx 将panUnlock-master文件夹删除 再重新上传原版 运行flask 还是
接受数据失败(2) 卸载重装flask还是一样
重下 pandownload客户端还是接受数据失败(2)
图片

通过抓包工具发现结果为403
图片


# | 结果 | 协议 | 主机 | URL | 主体 | 缓存 | 内容类型 | 进程 | 注释 | 自定义
-- | -- | -- | -- | -- | -- | -- | -- | -- | -- | --
8 | 403 | HTTP | pandownload.com | /api/init?clienttype=0&referral=&t=1588314003&version=2.2.2 | 597 | no-cache | text/html | proxifier:3852

nginx 200 0 后面的0说明响应为空 没有回复 但是flask显示又有回复
通过浏览器直接访问/api/init?clienttype=0&referral=&t=1588314241&version=2.2.2 也能得到json

如果大佬能明白怎么回事 希望给个解答哈

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.