XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2.05k stars 827 forks source link

405 Method Not Allowed with V2board on v0.9.3 #646

Closed FacMata closed 2 months ago

FacMata commented 3 months ago

It happens when the node tries to push the info back to the server.

E.g.

XrayR[39461]: 2024/06/14 21:07:23 request http://<domain>/api/v1/server/UniProxy/push failed: 
<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n    <meta charset=\"UTF-8\" />\n    <meta name=\"robots\" content=\"noindex,nofollow,noarchive\" />\n    <title>An Error Occurred: Method Not Allowed</title>\n    <link rel=\"icon\" href=\"data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>❌</text></svg>\" />\n    <style>body { background-color: #fff; color: #222; font: 16px/1.5 -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif; margin: 0; }\n.container { margin: 30px; max-width: 600px; }\nh1 { color: #dc3545; font-size: 24px; }\nh2 { font-size: 18px; }</style>\n</head>\n<body>\n<div class=\"container\">\n    <h1>Oops! An Error Occurred</h1>\n    <h2>The server returned a \"405 Method Not Allowed\".</h2>\n\n    <p>\n        Something is broken. Please let us know what you were doing when this error occurred.\n        We will fix it as soon as possible. Sorry for any inconvenience caused.\n    </p>\n</div>\n</body>\n</html>, <nil>"

Back to Nginx log I found:

"GET /api/v1/server/UniProxy/push?node_id=10&amp;node_type=shadowsocks&amp;token=<token> HTTP/2.0" 405 1011

The XrayR is sending request with GET method and it should be POST .

I read the source code and it did use a POST, so I don't know why right now.

mengxin239 commented 3 months ago

could u send me ur config?

Rezasharifi9 commented 3 months ago

Bring the version down to 0.9.2