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

download IPDatabase failed #1

Open
laowu20 opened this issue Mar 15, 2024 · 0 comments
Open

download IPDatabase failed #1

laowu20 opened this issue Mar 15, 2024 · 0 comments

Comments

@laowu20
Copy link

laowu20 commented Mar 15, 2024

I try to run this software by:
java -jar target/app.jar.
It failed to download the Database.
there are the error info:

3月 15, 2024 3:43:24 下午 de.ep_u_nw.ip_location_server.database.IPDatabase download
信息: Start fetching https://github.com/sapics/ip-location-db/raw/3941562d03c18763c1ee76c48a05efa5ac6aeaec/geolite2-city/geolite2-city-ipv4-num.csv.gz
3月 15, 2024 3:43:25 下午 de.ep_u_nw.ip_location_server.database.IPDatabase download
警告: Failed to fetch target due to 请求的名称有效,但是找不到请求的类型的数据。 (raw.githubusercontent.com)
java.net.UnknownHostException: 请求的名称有效,但是找不到请求的类型的数据。 (raw.githubusercontent.com)
at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:929)
at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1538)
at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:848)
at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1527)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1380)
at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1302)
at okhttp3.Dns$Companion$DnsSystem.lookup(Dns.kt:49)
at okhttp3.internal.connection.RouteSelector.resetNextInetSocketAddress(RouteSelector.kt:164)
at okhttp3.internal.connection.RouteSelector.nextProxy(RouteSelector.kt:129)
at okhttp3.internal.connection.RouteSelector.next(RouteSelector.kt:71)
at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:205)
at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at de.ep_u_nw.ip_location_server.database.IPDatabase.download(IPDatabase.java:67)
at de.ep_u_nw.ip_location_server.database.IPDatabase.updateDatabase(IPDatabase.java:34)
at de.ep_u_nw.ip_location_server.Main.main(Main.java:33)
3月 15, 2024 3:43:25 下午 de.ep_u_nw.ip_location_server.database.IPDatabase updateDatabase
警告: Unable to fetch database file in 427ms. Will continue using old dataset!
Exception in thread "main" java.lang.RuntimeException: Unable to initially download or build location database from https://github.com/sapics/ip-location-db/raw/3941562d03c18763c1ee76c48a05efa5ac6aeaec/geolite2-city/geolite2-city-ipv4-num.csv.gz!
at de.ep_u_nw.ip_location_server.Main.main(Main.java:36)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant