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

System.err Bad Response: </html> #35

@dhakimTRX

Description

@dhakimTRX

I'm using version 1.6.0 of ForecastIOLib, linked as
Dependencies{
implementation 'com.github.dvdme:ForecastIOLib:1.6.0'
}

I'm seeing error messages in my Android logs but I can't debug them further using what ForecastIO is logging.

I see:
05-07 18:05:47.151 6447 6780 W System.err: Bad Response:

I believe this is printed at ForecastIO.java:781,
System.err.println("Bad Response: " + response + "\n");

It seems that the library is only printing the last line of the error stream, and that error stream seems to be an HTML page.

If you could return a response code or the response stream to the application, it could decide whether or not to retry or let the end user address the issue in some way.

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