Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Polymer 2] verbose + error #296

Open
robrez opened this issue Sep 28, 2017 · 0 comments
Open

[Polymer 2] verbose + error #296

robrez opened this issue Sep 28, 2017 · 0 comments

Comments

@robrez
Copy link

robrez commented Sep 28, 2017

Description

In a polymer 2.0 app, iron-ajax is generating an exception in its error handler whenever verbose is true:

Uncaught (in promise) TypeError: undefined is not a function
    at HTMLElement._logger (legacy-element-mixin.html:896)
    at HTMLElement._error (legacy-element-mixin.html:924)
    at HTMLElement._handleError (iron-ajax.html:526)
    at <anonymous>

The stack trace takes me to this line:
https://github.com/PolymerElements/iron-ajax/blob/master/iron-ajax.html#L526

However, the console shows that the error function exists, so I'm not quite sure what is going wrong

> Polymer.Base._error

function _error(...args) {
        this._logger('error', args)
      }

The exception is not generated whenever I remove the verbose property

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant