eos icon indicating copy to clipboard operation
eos copied to clipboard

v1/wallet/create issue

Open gittempo opened this issue 8 years ago • 2 comments

Why do i get this error while creating wallet with http api

curl --request POST \ --url http://127.0.0.1:8888/v1/wallet/create

{ "code": 500, "message": "Internal Service Error", "error": { "code": 4, "name": "parse_error_exception", "what": "Parse Error", "details": [ { "message": "Unexpected char '119' in "wwwwwallet21"", "file": "json.cpp", "line_number": 437, "method": "variant_from_stream" }, { "message": "", "file": "json.cpp", "line_number": 460, "method": "from_string" } ] } }

gittempo avatar Jul 29 '18 11:07 gittempo

That does not appear to be the full curl command line you used. In particular, the JSON you're passing is missing. The error is in that JSON.

jgiszczak avatar Jul 30 '18 22:07 jgiszczak

Try this out @gittempo

curl -X POST http://127.0.0.1:9999/v1/wallet/create -H 'Cache-Control: no-cache' -H 'Content-Type: application/json' -d '"mywallet"'

yashvadhvani avatar Aug 23 '18 06:08 yashvadhvani