#create seek error: {"time":["error.real"],"increment":["error.number"]}

3 messages · Page 1 of 1 (latest)

solemn nymph
#

i'm trying to send a seek request but the api returns error:
{"time":["error.real"],"increment":["error.number"]}
what does this mean? the values for time and increment are 10 and 0 if it helps.

undone fossil
#

It could be that you use decimals and strings as your values?
I get the same error message if I use increment=0.0 and time="10":
curl --header "authorization: Bearer ***" -d 'increment=0.0&time="10"' http://localhost:9663/api/board/seek
{"time":["error.real"],"increment":["error.number"]}

If I instead use increment=0 and time=10 it works fine.

solemn nymph
#

Yes. The Issue seems to be that i'm passing a String to it, but golang doesn't let me put integer as a parameter for The add value function