Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

website monitor - [Metrics Collect]: Illegal character in path at index #3

Closed
tomsun28 opened this issue Mar 4, 2022 · 1 comment · Fixed by #5
Closed

website monitor - [Metrics Collect]: Illegal character in path at index #3

tomsun28 opened this issue Mar 4, 2022 · 1 comment · Fixed by #5
Labels
bug Something isn't working

Comments

@tomsun28
Copy link
Contributor

tomsun28 commented Mar 4, 2022

采集器对某个website网站监控进行采集时异常,初步判断URL不规范导致
异常堆栈:
2022-03-03 23:13:56.524 [6134408644919296-website-summary-6524] ERROR com.usthe.collector.dispatch.MetricsCollect Line:132 - [Metrics Collect]: Illegal character in path at index 35: https://xxxxxxxxx.com:80/ccccccday/ .
java.lang.IllegalArgumentException: Illegal character in path at index 35: https://xxxxxxxxx.com:80/ccccccday/
at java.net.URI.create(URI.java:852)
at org.apache.http.client.methods.RequestBuilder.setUri(RequestBuilder.java:345)
at com.usthe.collector.collect.http.HttpCollectImpl.createHttpRequest(HttpCollectImpl.java:457)
at com.usthe.collector.collect.http.HttpCollectImpl.collect(HttpCollectImpl.java:81)
at com.usthe.collector.dispatch.MetricsCollect.run(MetricsCollect.java:126)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.URISyntaxException: Illegal character in path at index 35: https://xxxxxxxxx.com:80/ccccccday/
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3105)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.(URI.java:588)
at java.net.URI.create(URI.java:850)
... 7 common frames omitted

@tomsun28
Copy link
Contributor Author

tomsun28 commented Mar 4, 2022

fix by pr #5

@tomsun28 tomsun28 closed this as completed Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant