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

How get body in error event? #845

Closed
ahdung opened this issue Nov 13, 2018 · 3 comments
Closed

How get body in error event? #845

ahdung opened this issue Nov 13, 2018 · 3 comments

Comments

@ahdung
Copy link

ahdung commented Nov 13, 2018

infScroll.on('error', function (error) {
    // how get response body ??
});
@desandro
Copy link
Member

If the request response does not return 200 OK, the statusText of the request is provided in the text of the error.

@ahdung
Copy link
Author

ahdung commented Nov 16, 2018

statusText not enough, I need show the customized message from server, please understand.
#846

@desandro
Copy link
Member

Infinite Scroll v4 has been released. Infinite Scroll v4 now includes a response argument, the Response to the fetch request on load, append and error events.

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

No branches or pull requests

2 participants