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

Passthrough non JSON returning end-point #264

Closed
olivierlesnicki opened this issue Sep 2, 2015 · 8 comments
Closed

Passthrough non JSON returning end-point #264

olivierlesnicki opened this issue Sep 2, 2015 · 8 comments

Comments

@olivierlesnicki
Copy link

Attempting to passthrough API end-points that do not return JSON text results in errors.
Is there a way to pass-through those end-points?

@samselikoff
Copy link
Collaborator

try

this.pretender.get('http://*', this.pretender.passthrough);

@samselikoff
Copy link
Collaborator

Please upgrade to 0.1.9 and try the new passthrough api api, and let me know if it doesn't solve this.

Thanks!

@olivierlesnicki
Copy link
Author

@samselikoff Sadly we can't upgrade to jQuery 2.x for support reasons.

@samselikoff samselikoff reopened this Oct 5, 2015
@samselikoff
Copy link
Collaborator

Understood. Maybe you could provide some more information or help out over on trek/pretender to move this along:

pretenderjs/pretender#85

@olivierlesnicki
Copy link
Author

Yes, it's a simple fix actually. Raised PR pretenderjs/pretender#114
But unit tests are failing and I haven't had the time to identify the culprits.

@olivierlesnicki
Copy link
Author

according to the specs both onreadystatechange and onload events are supposed to be triggered, but prentender only trigger one at any given time.

@samselikoff
Copy link
Collaborator

Closing for now, since this is a Pretender issue. Please lmk if you have more questions.

@samselikoff
Copy link
Collaborator

Actually, it looks like it was fixed - you should try it out!

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