iron-ajax icon indicating copy to clipboard operation
iron-ajax copied to clipboard

generaterequest catch() in parent scope has no error info

Open davidmaxwaterman opened this issue 7 years ago • 0 comments

See this SO question for more info:

https://stackoverflow.com/questions/38018531/retrieving-status-code-from-ironrequest-promise

Particularly the comment to the accepted answer:

This approach works only if the catch handler is in the same scope as the generateRequest() call. What can be done if the request is fired in a method that returns the promise, with a catch handler in a parent scope?

I'll try and make a quick demo...

davidmaxwaterman avatar Jun 29 '17 17:06 davidmaxwaterman