-
Notifications
You must be signed in to change notification settings - Fork 277
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
Unexpected query response; status: 405 Method Not Allowed; response body: HTTP method not allowed #5297
Comments
Could you please provide detailed steps to reproduce the error so that we can reproduce and identify it? Also, be sure to list all relevant commits from all dependent repositories. |
i have run node by cloning this directory then i have setup backend explorer and fontend explorer "@iroha2/client": "^7.0.0", when i run the scrypt request{method=POST path=/query version=HTTP/1.1 remote.addr=172.19.0.1:50916}: warp::filters::trace: unable to serve request (client error) status=405 error=Rejection(MethodNotAllowed) #5293 |
This all seems confusing. A few points:
So, I guess that could be simply an issue of version mismatch. The "Method Not Allowed" error is confusing and misleading. My guess is that the explorer in your case submits a A solution in your case would definitely be using the matching versions of each project (iroha, explorer, iroha js). I would strongly advise you to migrate to Here are some links:
Let me know if this answer works for you or not. |
OS and Environment
Ubuntu Docker Hub
GIT commit hash
587bad9, 2891a07
Minimum working example / Steps to reproduce
i have test with both commit branch
2891a07, 587bad9
but same issue
i am runninga iroha2 node it is running but not abale to all methods outside of the terminal either i am using sdk or running explorer backend and web both
Caused by:
Unexpected query response; status: 405 Method Not Allowed; response body: HTTP method not allowed
Actual result
i am runnig a node on local system but i got an error when i call using sdk or setup iroha2 backend explorer
request{method=POST path=/query version=HTTP/1.1 remote.addr=172.19.0.1:50916}: warp::filters::trace: unable to serve request (client error) status=405 error=Rejection(MethodNotAllowed)
Caused by:
Unexpected query response; status: 405 Method Not Allowed; response body: HTTP method not allowed
Location:
/home/user1/.cargo/git/checkouts/iroha-094ecd6d07a2c2f8/37ba88c/client/src/client.rs:230:26) http.method=GET http.route=/api/v1/blocks http.flavor=1.1 http.scheme=http http.host=127.0.0.1:4000 http.client_ip=127.0.0.1 http.user_agent=Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36 http.target=/api/v1/blocks?per_page=10 otel.name=HTTP GET /api/v1/blocks otel.kind="server" request_id=54a8d875-6bcb-4453-b7ca-ee8f72a5a5a3 exception.message=Internal Server Error exception.details=Internal(Unexpected query error
Expected result
responce should be in 200 code but not get
Logs
request{method=POST path=/query version=HTTP/1.1 remote.addr=172.19.0.1:50916}: warp::filters::trace: unable to serve request (client error) status=405 error=Rejection(MethodNotAllowed)
Caused by:
Unexpected query response; status: 405 Method Not Allowed; response body: HTTP method not allowed
Who can help to reproduce?
No response
Notes
No response
The text was updated successfully, but these errors were encountered: