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

API Passthrough not resolving promise #571

Closed
elwayman02 opened this issue Feb 11, 2016 · 6 comments
Closed

API Passthrough not resolving promise #571

elwayman02 opened this issue Feb 11, 2016 · 6 comments

Comments

@elwayman02
Copy link
Contributor

In my mirage config: this.passthrough('http://foo.bar/**');

Request: GET http://foo.bar/me

The request goes out to the live API, but when it returns, the promises don't actually resolve properly. It's like the request just gets swallowed and nothing happens. The code works as-is, it was only when I installed mirage that it stopped resolving. Any thoughts @samselikoff?

@elwayman02
Copy link
Contributor Author

Mirage: 0.1.11
Ember: 1.13.13
Ember-Data: 1.13.14

@anulman
Copy link
Contributor

anulman commented Feb 12, 2016

Think this could be related to pretenderjs/pretender#130 .

I've dealt with similar behaviour prior, and was able to fix this by upgrading to pretender >= 0.11.0 || jquery >= 2.1.0

@anulman
Copy link
Contributor

anulman commented Feb 12, 2016

@samselikoff I see Mirage is adding pretender ~0.10.1 to projects in the afterInstall hook. Any reason the upgrade's not landed yet / if not, want me to change it?

@elwayman02
Copy link
Contributor Author

@anulman thanks for the heads up! I was able to get it working on the latest pretender without upgrading jQuery.

@anulman
Copy link
Contributor

anulman commented Feb 12, 2016

@samselikoff
Copy link
Collaborator

Merged the upgrade - thanks for taking care of this yall!

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