Rest API Call Issue - HttpStatus returns 0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2018 12:13 PM
Hello ,
I am making a REST API call and keep getting httpstatus code as 0 with the following error
The request failed: java.lang.IllegalArgumentException: host parameter is null","status":"0".
I have the endpoint url configured correctly.
Any idea why it is returning a status code 0.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2018 03:41 PM
Can you share screenshot of request?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2021 11:56 PM
Hello,
Were you able to resolve the issue.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2021 06:45 PM
God, this was a problem four years ago..
I once had a status code of 0 when the midserver did not set proxy.But the error seems different
error:java.net.SocketTimeoutException:Connect timed out
in addition,It seems that this problem can also occur if there are special characters in the URL without encoding.
error:java.lang.IllegalArgumentException:Invalide uri
You can try the following methods:
endPointURL = encodeURI(endPointURL);
What about your specific problems and error messages
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2021 06:40 PM
I once had a status code of 0 when the midserver did not set proxy.But the error seems different
in addition,It seems that this problem can also occur if there are special characters in the URL without encoding.
You can try the following methods:
endPointURL = encodeURI(endPointURL);