Skip to content

No api key is required? #25

@pcg92

Description

@pcg92

Im using this library on an android app and it works 20% of times.
Sometimes Im having null response with this error:

 java.net.SocketTimeoutException: Read timed out
01-04 19:01:51.913 25734-25792/com.pumpunW/System.err:     at com.android.org.conscrypt.NativeCrypto.SSL_read(Native Method)

at com.pumpun.calixtina_weather.vendor.YahooWeather.getWeatherString(YahooWeather.java:295)

01-04 19:01:51.923 25734-25792/com.pumpunW/System.err: org.xml.sax.SAXParseException: Unexpected end of document
01-04 19:01:51.923 25734-25792/com.pumpunW/System.err:     at org.apache.harmony.xml.parsers.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:125)
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:107)
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at com.pumpun.calixtina_weather.vendor.YahooWeather.convertStringToDocument(YahooWeather.java:340)
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at com.pumpun.calixtina_weather.vendor.YahooWeather.access$400(YahooWeather.java:55)
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at com.pumpun.calixtina_weather.vendor.YahooWeather$WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:503)
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at com.pumpun.calixtina_weather.vendor.YahooWeather$WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:470)

01-04 19:01:51.933 25734-25792/com.pumpunW/System.err: java.lang.NullPointerException
01-04 19:01:51.933 25734-25792/com.pumpunW/System.err:     at com.pumpun.calixtina_weather.vendor.YahooWeather.parseWeatherInfo(YahooWeather.java:359)
01-04 19:01:51.933 25734-25792/com.pumpun.W/System.err:     at $500(YahooWeather.java:55)
01-04 19:01:51.943 25734-25792/com.pumpun.W/System.err:     at WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:504)
W/System.err:     at $WeatherQueryByLatLonTask.doInBackground(YahooWeather.java:470)

I dont know why sometimes works and sometimes fail

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