java.net.URISyntaxException: Illegal character in scheme name

Viewed 1346

I have this curl:

curl -i --user 'nuni:Iconi1080!' --noproxy '*' -H "Content-Type: application/json" -XPOST "https://intratest.com/services/tomcat/v2/server/deploy" -d '{"user": "nuni" ,"name": "pol", "isName": "nuni8", "envName": "Dv", "tomcatEnvironment": "task", "applicationVersion": "0.0.1"}'

but when i run it thought Intelil I have this error:

java.net.URISyntaxException: Illegal character in scheme name at index 4:
2 Answers

You haven't provided the java code but from examining the cURL you shared, I can see that you have a missing " after the word 'pol' in the JSON data part. so basically, the JSON seems broken, which could raise a problem later on in your java app.

I think you have some empty spaces before or after https:, you should remove them.

Related