Skip to content
This repository was archived by the owner on Feb 22, 2018. It is now read-only.
This repository was archived by the owner on Feb 22, 2018. It is now read-only.

onError is not invoked when http.get fails #224

@traceypowersg

Description

@traceypowersg
_http.get('/i/do/not/exist')
  .then((HttpResponse response) {
    // don't expect this to be invoked. URL provided is a 404
  },
  onError: (Object obj) {
    print('heavens to betsy! that url was no good!');
  });

The log looks like this:
Failed to load resource: the server responded with a status of 404 (Not Found)
http://127.0.0.1:3030/i/do/not/exist
Instance of '_XMLHttpRequestProgressEvent@0x3918afae'

STACKTRACE:
null

But the error handler message never prints out in the console, nor does a breakpoint set there get hit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions