Waves icon indicating copy to clipboard operation
Waves copied to clipboard

API failed to parse json

Open sarosbacz opened this issue 8 years ago • 4 comments

Chain: testnet. URL: 'http://127.0.0.1:6870/assets/masstransfer' Headers: {'X-Api-Key': 'ridethewaves!', 'Content-type': 'application/json'} Method: POST. Passing json, but getting {'error': 1, 'cause': None, 'message': 'failed to parse json message', 'validationErrors': {'obj.version': [{'args': [], 'msg': ['error.path.missing']}]}}. Same with /assets/transfer.

sarosbacz avatar Apr 10 '18 20:04 sarosbacz

JSON should be in a format: https://docs.wavesplatform.com/development-and-api/waves-node-rest-api/asset-transactions/private-functions.html#post-assetsmasstransfer

vsuharnikov avatar May 03 '18 12:05 vsuharnikov

Please use https://docs.wavesplatform.com/development-and-api/waves-node-rest-api/transactions.html#post-transactionsbroadcast for this

vsuharnikov avatar Jun 01 '18 11:06 vsuharnikov

@sarosbacz Did you have a chance to check the transaction broadcast method?

monroid avatar Jul 23 '18 15:07 monroid

In case of failure of the new method, please reopen the issue.

monroid avatar Jul 23 '18 15:07 monroid