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

Error in Firefox 58.0.2: "TypeError: request.completes is undefined" #315

Open
1 of 8 tasks
njbartlett opened this issue Feb 19, 2018 · 2 comments
Open
1 of 8 tasks

Comments

@njbartlett
Copy link

Description

I have a page with an iron-ajax defined as follows:

        <iron-ajax id="ajax"
            auto
            url="http://[[server]]:[[port]][[path]]"
            params="[[_computeParams(query)]]"
            debounce-duration="500"
            handle-as="json"
            on-response="_handleResponse"
            on-error="_handleError"
            loading="{{_loading}}"
            verbose
        ></iron-ajax>

This works perfectly on Chrome and Safari. However on Firefox 58.0.2 I get no data, and an error in the console (see below).

I have tried with iron-ajax versions 2.1.0 and 2.1.2.

Expected outcome

Data displayed in Firefox the same as Chrome/Safari.

Actual outcome

Error in console, no data:

TypeError: request.completes is undefined [Learn More]
generateRequest
http://127.0.0.1:8081/components/iron-ajax/iron-ajax.html.js:441:5
_requestOptionsChanged/<
http://127.0.0.1:8081/components/iron-ajax/iron-ajax.html.js:550:9
<anonymous> self-hosted:948:17 setConfig/this._timer<
http://127.0.0.1:8081/components/polymer/lib/utils/debounce.html.js:30:9
microtaskFlush
http://127.0.0.1:8081/components/polymer/lib/utils/async.html.js:21:11

Live Demo

Not available, sorry.

Steps to reproduce

Browsers Affected

  • Chrome
  • Firefox
  • Safari 9
  • Safari 8
  • Safari 7
  • Edge
  • IE 11
  • IE 10
@chadmasso
Copy link

Running into the same issue. Any updates?

@nicolethenerd
Copy link

I ran into this issue and it turned out I was including a very old version of the Custom Elements Polyfill (https://github.com/webcomponents/custom-elements). Removing it solved the problem.

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

3 participants