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

najax: method jqXHR getAllResponseHeaders not implemented #66

Open
joshkg opened this issue Oct 4, 2018 · 2 comments
Open

najax: method jqXHR getAllResponseHeaders not implemented #66

joshkg opened this issue Oct 4, 2018 · 2 comments

Comments

@joshkg
Copy link

joshkg commented Oct 4, 2018

We just moved a project onto a new box, and I'm getting this error:

najax: method jqXHR getAllResponseHeaders not implemented

Looking at the source, I can see the notImplemented fn is first assigned to jqXHR.getAllResponseHeaders and then that is being assigned with the real getAllResponseHeaders fn:

    dfd.getAllResponseHeaders = jqXHR.getAllResponseHeaders = function getAllResponseHeaders () {
      var headers = []
      for (var key in res.headers) {
        headers.push(key + ': ' + res.headers[key])
      }
      return headers.join('\n')
    }

I'm not clear on what the scenario is when the notImplemented method would be called, since it looks like it is always being overwritten inside the request callback. Can someone clarify for me?

I don't have much insight on the new box this project is deployed on, I'm guessing that its unable to make outside requests - but wanted to understand this specific error before making that assumption.

Thanks!

@joshkg
Copy link
Author

joshkg commented Nov 23, 2018 via email

@jasonmevans
Copy link

jasonmevans commented Nov 23, 2018 via email

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

2 participants