Faucet needs to validate amount as int #29
Description
POST https://api.blockcypher.com/v1/bcy/test/faucet?token=MY_TOKEN
Request: string(62) "{"address":"BvngfRB42j2125T6U84hAWUphYDjJg4zpp","amount":"10"}"
Response:
string(453) "HTTP/1.1 400 Bad Request
Server: nginx/1.11.10
Date: Tue, 25 Apr 2017 13:18:49 GMT
Content-Type: application/json
Content-Length: 97
Connection: keep-alive
Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept
Access-Control-Allow-Methods: GET, POST, PUT, DELETE
Access-Control-Allow-Origin: *
X-Ratelimit-Remaining: 192
{"error": "Error decoding faucet info, json: cannot unmarshal string into Go value of type int."}"
Thank you.
P.S. I'm using official php client, that validates address and amount before issue the request. So it might be client validation bug (must also check for correct type) or backend's bug because it seems nothing special to convert "10" to 10 even in Go.