** (Jason.DecodeError) unexpected end of input at position 0

You are very likely receiving an empty string from that API. Without any details given, we can’t help more than that.