Skip to content
This repository was archived by the owner on Dec 4, 2022. It is now read-only.
This repository was archived by the owner on Dec 4, 2022. It is now read-only.

Can't download database #10

@donfour

Description

@donfour

Hi! I was following the quick start guide to setup the api.
First of all, according to the javadoc, getRemainingArrivalTimeText method doesn't exist anymore. Also, I ran into the following error when I ran my code:

ArrivalManager: Database is not loaded. Loading now...
ArrivalManager: It might take a while...
java.io.IOException: Server returned HTTP response code: 403 for URL: https://db.kmbeta.ml/kmbeta_db.json
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1876)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at com.github.mob41.kmbeta.api.BusDatabase.loadWebDB(BusDatabase.java:173)
	at com.github.mob41.kmbeta.api.ArrivalManager.<init>(ArrivalManager.java:163)
	at com.github.mob41.kmbeta.api.ArrivalManager.<init>(ArrivalManager.java:72)
	at test.Test.main(Test.java:17)
ArrivalManager: Could not load database. Check your internet connection or the database file placed near your application.
Exception in thread "main" com.github.mob41.kmbeta.exception.CouldNotLoadDatabaseException: Could not load database. Check your internet connection or the database file placed near your application.
	at com.github.mob41.kmbeta.api.ArrivalManager.<init>(ArrivalManager.java:186)
	at com.github.mob41.kmbeta.api.ArrivalManager.<init>(ArrivalManager.java:72)
	at test.Test.main(Test.java:17)

However, I am able to open https://db.kmbeta.ml/kmbeta_db.json in my Chrome browser, so this shouldn't be the server's problem.
Do you have any idea why this would occur? Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions