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

外网的YAAW只能用WS://访问到 #83

Open
lxlw1320 opened this issue Feb 11, 2016 · 10 comments
Open

外网的YAAW只能用WS://访问到 #83

lxlw1320 opened this issue Feb 11, 2016 · 10 comments

Comments

@lxlw1320
Copy link

最近遇到个问题,windows下访问aria2.com这类外网上的YAAW,设置http://的时候总是错误: Aria2 RPC 服务器错误,但是访问本地YAAW都是正常的,改成ws://能正常连接,用MAC访问的话都能连,访问http://192.168.1.1:6800/jsonrpc?jsoncallback=1返回的是1({"id":null,"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request."}}),这个是什么问题呢,mac下正常,端口映射和公网Ip都没问题,就是每次windows没法正常访问,导致离线下载之类的插件都是rpc请求失败

@binux
Copy link
Owner

binux commented Feb 11, 2016

你设置了 --rpc-allow-origin-all 吗

@lxlw1320
Copy link
Author

@binux 设置了啊,真奇怪
enable-rpc=true
rpc-allow-origin-all=true
rpc-listen-all=true
async-dns=false
dir=/mnt/sda1/aria2
file-allocation=none
daemon=true
split=10
max-concurrent-downloads=3
continue=true
max-connection-per-server=5
min-split-size=10M
input-file=/mnt/sda1/aria2/session/aria2.session
save-session=/mnt/sda1/aria2/session/aria2.session
save-session-interval=60
disable-ipv6=true
log=/mnt/sda1/aria2/log/aria2.log
force-save=true
log-level=error
我之前winsock reset好了次 现在又这样了,不清楚是哪出了问题呢

@binux
Copy link
Owner

binux commented Feb 13, 2016

你会看 开发者工具>network 面板吗?对应的请求的失败原因是什么

@lxlw1320
Copy link
Author

Uncaught TypeError: Cannot read property 'tagName' of null
Failed to load resource: net::ERR_CONNECTION_ABORTED

我找了几台windows的机器状况都是差不多,winsock reset完重启刚开机都是正常的,一阵子以后莫名其妙可能就没法RPC错误了,但是在mac下使用都是正常

@lxlw1320
Copy link
Author

@binux network下面 全是POST
image

@binux
Copy link
Owner

binux commented Feb 16, 2016

winsock 是什么?没有不是 pending 的请求吗?

@lxlw1320
Copy link
Author

cmd的命令 netsh winsock reset
windows网络编程接口,提供应用层与底层传输协议无关的高层数据传输编程接口

@lxlw1320
Copy link
Author

@binux 今天这个数据好像有些问题。。等我回家再试一下

@giada22
Copy link

giada22 commented Apr 29, 2016

我的情况和 上面大哥一样的 一直用YAAW 外网也不能访问 希望 作者大侠 解决这个 BUG #
aaa

@binux
Copy link
Owner

binux commented Apr 29, 2016

@giada22 aria2c jsonrpc 的端口映射了吗,有防火墙吗?

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

3 participants