Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Invalid JSON RPC response: "Used HTTP Method is not allowed....." #4740

Closed
Ochir opened this issue Mar 3, 2017 · 0 comments
Closed

Invalid JSON RPC response: "Used HTTP Method is not allowed....." #4740

Ochir opened this issue Mar 3, 2017 · 0 comments
Assignees
Labels
F2-bug 🐞 The client fails to follow expected behavior. M4-core ⛓ Core client code / Rust.

Comments

@Ochir
Copy link

Ochir commented Mar 3, 2017

Parity was with args

parity.exe --chain morden-new.json --jsonrpc-interface all --jsonrpc-hosts all --jsonrpc-apis "web3,eth,net,parity,traces,rpc,parity_set,parity_accounts" --jsonrpc-cors None --engine-signer 0x98ca84d26dd89d240d93531085c1b67841a0ff1c --password pp --usd-per-tx 0 --force-sealing --keys-path parity-one/keys --db-path parity-one/db --base-path parity-one --no-dapps -lrpc=trace,dapps=trace

executed a transaction and got the following error message:

error = Error: Invalid JSON RPC response: "Used HTTP Method is not allowed. POST or OPTIONS is required\n")
 completed with error: Error: Invalid JSON RPC response: "Used HTTP Method is not allowed. POST or OPTIONS is required\n"
Error: Invalid JSON RPC response: "Used HTTP Method is not allowed. POST or OPTIONS is required\n"
    at Object.InvalidResponse (..\node_modules\web3\lib\web3\errors.js:35:16)
    at XMLHttpRequest.request.onreadystatechange (..\node_modules\web3\lib\web3\httpprovider.js:115:32)
    at XMLHttpRequestEventTarget.dispatchEvent (..\node_modules\xhr2\lib\xhr2.js:64:18)
    at XMLHttpRequest._setReadyState (..\node_modules\xhr2\lib\xhr2.js:354:12)
    at XMLHttpRequest._onHttpResponseEnd (..\node_modules\xhr2\lib\xhr2.js:509:12)
    at IncomingMessage.<anonymous> (..\node_modules\xhr2\lib\xhr2.js:469:24)
    at emitNone (events.js:91:20)
    at IncomingMessage.emit (events.js:188:7)
    at endReadableNT (_stream_readable.js:974:12)
    at _combinedTickCallback (internal/process/next_tick.js:80:11)


2017-03-03 13:51:48  main INFO parity::run  Starting Parity/v1.6.0-unstable-3a0c4b653-20170303/x86_64-windows-msvc/rustc1.15.0
2017-03-03 13:51:48  main INFO parity::run  State DB configuration: fast
2017-03-03 13:51:48  main INFO parity::run  Operating mode: active
2017-03-03 13:51:48  main INFO ethcore::service  Configured for Muuu using AuthorityRound engine
2017-03-03 13:51:53  IO Worker #0 INFO network  Public node URL: enode://b79b5f653ffcb8342b3fa5272def2db99105d64a2762df0618e3c2ea2e7b2fa8ebba5d86063ab66fe34f2166f4d74f2f957fc6311e36b0ab2268f0196961b531@127.0.0.1:30303
2017-03-03 13:51:53  IO Worker #1 INFO import  Syncing       #0 6938…7b1f     0 blk/s    0 tx/s   0 Mgas/s      0+    0 Qed        #0    0/ 0/25 peers     7 KiB db    7 KiB chain  0 bytes queue 448 bytes sync  RPC:  0 conn,  0 req/s,   0 µs
2017-03-03 13:51:56   TRACE rpc  Request: {"jsonrpc":"2.0","method":"eth_getTransactionCount","params":["0x0e6a888a03887648c4a0846fdd8ce2fa31d24fe4","pending"],"id":1488538316834}.
2017-03-03 13:51:56   DEBUG rpc  Response: Some("{\"jsonrpc\":\"2.0\",\"result\":\"0x100000\",\"id\":1488538316834}").
2017-03-03 13:51:56   WARN jsonrpc_http_server::handler  Error while resuming async call: "\"SendError(..)\""
2017-03-03 13:51:56   TRACE rpc  Request: {"jsonrpc":"2.0","id":1,"method":"eth_sendTransaction","params":[{"from":"0x0e6a888a03887648c4a0846fdd8ce2fa31d24fe4","data":"0x606060408190526004805460ff1916600117905561059438819003908190833981016040528051608051909101818160008054600160a060020a031916321790558060036000509080519060200190828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f106100c257805160ff19168380011785555b506100f29291505b808211156101215760008155600101610093565b5050506001839055505050505061046f806101256000396000f35b8280016001018555821561008b579182015b8281111561008b5782518260005055916020019190600101906100d4565b5050816002600050818154818355818115116100a7578183600052602060002091820191016100a79190610093565b509056606060405236156100a35760e060020a60003504630ae50a3981146100a85780631578538d146100c057806319fc53d8146100d95780634a00bdc1146100e95780636f3097f0146100f857806374a82f69146101065780638191745f14610129578063a9bb0fa114610197578063ccc08913146101b4578063dcd6a5cd146101c4578063ddf0924a146101fc578063e4183cb114610222578063ff7620441461022f575b610002565b346100025761023c600054600160a060020a03165b90565b3461000257610259600454600260ff90911610156100bd565b346100025761026d6001546100bd565b346100025761025960016100bd565b346100025761026d60015481565b346100025761027f6102ef5b60005432600160a060020a039081169116146100bd565b346100025761028160408051602081810183526000825282516003805460026001821615610100026000190190911604601f8101849004840283018401909552848252929390929183018282801561036c5780601f106103415761010080835404028352916020019161036c565b346100025761026d60043560025460009082111561037857610002565b34610002576102595b60006100bd565b346100025761027f60043560045460009060ff16600214806101e7575060025482115b806101f25750816000145b156103b457610002565b346100025761026d33600160a060020a03166000908152600560205260409020546100bd565b3461000257610259610112565b346100025761026d6101bd565b60408051600160a060020a03929092168252519081900360200190f35b604080519115158252519081900360200190f35b60408051918252519081900360200190f35b005b60405180806020018281038252838181518152602001915080519060200190808383829060006004602084601f0104600302600f01f150905090810190601f1680156102e15780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b15156102fa57610002565b6004805460ff1916600217908190556040805160ff9092168252517f551dc40198cc79684bb69e4931dba4ac16e4598792ee1c0a5000aeea366d7bb69181900360200190a1565b820191906000526020600020905b81548152906001019060200180831161034f57829003601f168201915b505050505090506100bd565b600280546000198401908110156100025750600052507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acd015490565b5033600160a060020a0316600090815260056020526040812054908114610416576002805460001983019081101561000257506000527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acd810180546000190190555b60028054600019840190811015610002575050507f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5acd81018054600101905533600160a060020a03166000908152600560205260409020555600000000000000000000000000000000000000000000000000000000000000030000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000b61737361643220706f6c6c000000000000000000000000000000000000000000","gas":"0x3524c8"}]}.

This message was no displayed for older versions, for instance, for 1.5.4 release.

@tomusdrw tomusdrw added F2-bug 🐞 The client fails to follow expected behavior. M4-core ⛓ Core client code / Rust. labels Mar 3, 2017
@tomusdrw tomusdrw self-assigned this Mar 3, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
F2-bug 🐞 The client fails to follow expected behavior. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

No branches or pull requests

2 participants