InputValidationFailed - Input validation failed: granularity
Dear all (@Raunak , @Jean-Yves Sireau , @Kaveh , @karenyap , @Boris ...)
Request:{ "ticks_history": "R_100", "end": "latest", "count": 3, "granularity": 60 }
sometime normal and sometime error, here my error:InputValidationFailed - Input validation failed: granularity [{"echo_req":{"granularity":60,"count":3,"ticks_history":"R_100","end":"latest"},"error":{"details":{"granularity":"does not have a value in the enumeration {0,60,120,180,300,600,900,1800,3600,7200,14400,28800,86400}"},"message":"Input validation failed: granularity","code":"InputValidationFailed"},"msg_type":"ticks_history"}]
I have got more than 1000 granularity errors after 6 hours test.
How to solve it?
Comments
@fatoni Can you check your code if you are passing granularity as string i.e in double quotes? I tried your request in developers.binary.com
{ "ticks_history": "R_100", "end": "latest", "count": 3, "granularity": 60 }
it works for me all the timeMay be you need to use something like parseInt, can you also try in developers.binary.com if you get that error?
@fatoni we will fix the issue, it happened to me on developers.binary.com as well
@Raunak, thank you for your replied. Please let me know if you have fixed the issue.
Still error
2016-04-26 06:12:34 GMT : InputValidationFailed - Input validation failed: granularity [{"echo_req":{"granularity":900,"count":1,"ticks_history":"R_100","end":"latest"},"error":{"details":{"granularity":"does not have a value in the enumeration {0,60,120,180,300,600,900,1800,3600,7200,14400,28800,86400}"},"message":"Input validation failed: granularity","code":"InputValidationFailed"},"msg_type":"ticks_history"}]
@fatoni Fix has been just released, please check now. You will not get this error.
I am running it now and NO ERROR, yaay
Thank you @Raunak