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

Getting Weather without Internet Connection #42

Open
vankerkh opened this issue Mar 31, 2017 · 0 comments
Open

Getting Weather without Internet Connection #42

vankerkh opened this issue Mar 31, 2017 · 0 comments
Assignees

Comments

@vankerkh
Copy link
Member

vankerkh commented Mar 31, 2017

While getting weather data using the HTTP request without a internet connection results in the terminal crashing. The error log is as follows:

Exception in thread "main" org.json.JSONException: A JSONObject text must begin with '{' at [character 2 line 1]

at org.json.JSONTokener.syntaxError(JSONTokener.java:451)
at org.json.JSONObject.(JSONObject.java:195)
at org.json.JSONObject.(JSONObject.java:319)
at server.datatypes.WeatherData.(WeatherData.java:42)
at terminal.Terminal.handleConsoleInput(Terminal.java:1090)
at terminal.Terminal.run(Terminal.java:236)
at terminal.Terminal.main(Terminal.java:1607)

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

No branches or pull requests

2 participants