Skip to content

core-ajax does not handle ERR_CONNECTION_REFUSED #744

Description

@har79

In core-ajax, if my backend server is dead when .go() is called, on-core-response is called with invalid data. The expected behaviour is that on-core-error is called. The console contains the following logs:

GET http://localhost:8080/data net::ERR_CONNECTION_REFUSED core-xhr.html:68
core-ajax caught an exception trying to parse response as JSON: core-ajax.html:241
url: /data core-ajax.html:242
SyntaxError {stack: (...), message: "Unexpected end of input"} core-ajax.html:243

polymer core-ajax

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions