URL encode your string before sending.
Which character is at index 49 of your location string? It seems like it is not allowed.
Thorsten is right. I think the problem is the blank space between OSG and Admiral. You need to URL encode it.
Thank you for the reply
https://api.linescape.com/api/v1/vessels?name=OSG ADMIRAL, This is the String which I am passing in the URL
Trying to get the data from the thirdparty API. when passing the URL without any constrain it fetches the data, but after passing the String getting this error