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

Error querying JSON-RPC endpoint #119

Open
andygolay opened this issue Apr 2, 2024 · 2 comments
Open

Error querying JSON-RPC endpoint #119

andygolay opened this issue Apr 2, 2024 · 2 comments

Comments

@andygolay
Copy link

Attempting the JSON-RPC Endpoint query at https://docs.movementlabs.xyz/networks/m1/documentation/specification

curl -X POST --data '{
  "jsonrpc": "2.0",
  "id"     : 1,
  "method" : "getTransactionByHash",
  "params" : [{"data":"69c74b1fc8002d41f1ec04a4c7312d174aa8c7d9fc20ce938d106d1f70841737"}]
}' -H 'content-type:application/json;' https://devnet.m1.movementlabs.xyz/ext/bc/2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK/rpc

Returns this error:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /ext/bc/2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK/rpc</pre>
</body>
</html>

Could this/ext/bc/2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK/rpc in the URL be outdated?

Visiting the URL https://devnet.m1.movementlabs.xyz/ext/bc/2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK/rpc displays Cannot GET /ext/bc/2gLyawqthdiyrJktJmdnDAb1XVc6xwJXU6iJKu3Uwj21F2mXAK/rpc

@prodesert22
Copy link

prodesert22 commented Apr 2, 2024

Using the url https://devnet.m1.movementlabs.xyz have the same error for me

curl -X POST --data '{
  "jsonrpc": "2.0",
  "id"     : 1,
  "method" : "getTransactionByHash",
  "params" : [{"data":"69c74b1fc8002d41f1ec04a4c7312d174aa8c7d9fc20ce938d106d1f70841737"}]
}' -H 'content-type:application/json;' https://devnet.m1.movementlabs.xyz

result

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Error</title>
</head>
<body>
<pre>Cannot POST /</pre>
</body>
</html>

post

@prodesert22
Copy link

In get method even changing the rpc method or the params it return the same result

curl -X GET --data '{
  "jsonrpc": "2.0",
  "id"     : 1,
  "method" : "getTransactionByHash",
  "params" : [{"data":"69c74b1fc8002d41f1ec04a4c7312d174aa8c7d9fc20ce938d106d1f70841737"}]
}' -H 'content-type:application/json;' https://devnet.m1.movementlabs.xyz

result

{
  "chain_id": 4,
  "epoch": "2640",
  "ledger_version": "8301199",
  "oldest_ledger_version": "0",
  "ledger_timestamp": "1712099570841495",
  "node_role": "validator",
  "oldest_block_height": "0",
  "block_height": "2768688",
  "git_hash": "514cdca4e4dee7d61dd731fd10e8f1b24a3ff179"
 }

GET

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

2 participants