skywalking
skywalking copied to clipboard
[NIGNX-LUA] Which is the lowest skywalking version of the skywalking-nginx-lua support
Please answer these questions before submitting your issue.
- Why do you submit this issue?
- [x] Question or discussion
I test it on 6.6 or 6.1, It show the url was not found or not supported
curl -H "Content-Type: application/json" -X POST -d '{"serviceName":"aaa"}' -i 127.0.0.1:12800/v2/service/register
HTTP/1.1 405 HTTP method POST is not supported by this URL
Date: Mon, 24 Feb 2020 02:30:58 GMT
Cache-Control: must-revalidate,no-cache,no-store
Content-Type: text/html;charset=iso-8859-1
Content-Length: 407
Server: Jetty(9.4.2.v20170220)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>Error 405 HTTP method POST is not supported by this URL</title>
</head>
<body><h2>HTTP ERROR 405</h2>
<p>Problem accessing /v2/service/register. Reason:
<pre> HTTP method POST is not supported by this URL</pre></p><hr><a href="http://eclipse.org/jetty">Powered by Jetty:// 9.4.2.v20170220</a><hr/>
</body>
</html>
That is expected, that is not a release version and we need HTTP protocol supports at the backend. Follow #4399 please.
Also, this is the wrong call
curl -H "Content-Type: application/json" -X POST -d '{"serviceName":"aaa"}' -i 127.0.0.1:12800/v2/service/register
Read this, https://github.com/apache/skywalking/pull/4399#issuecomment-590022429