Open shadiakiki1986 opened 6 years ago
I did a simple test like:
@Test
public void testUri() throws URISyntaxException {
new URI("http://fscrawler_test:80/");
new URI("http", null, "fscrawler_test", 80, "/", null, null);
}
The first is OK but the later fails with: java.net.URISyntaxException: Illegal character in hostname at index 16: http://fscrawler_test:80/
Which is kind of weird because the the later is generating the same string as the former... o_O
I'm digging more.
I think this is something that the JDK does not support according to some feedbacks I got on Twitter: https://twitter.com/dadoonet/status/952214871298461696
May be I should add a check when validating the settings before launching anything?
I think that VertX might support this better. I mean that the error comes here from Jersey and there is no other method AFAIK to start the server.
So I might fix that when #529 will be implemented.
This was when testing on docker service named
fscrawler_rest
. When running a simple curl call to the REST endpoint$ docker-compose exec elasticsearch1 curl "http://fscrawler_rest:8080"
the following error is receivedRenaming the service from
fscrawler_rest
tofscrawlerrest
fixes it