-
Notifications
You must be signed in to change notification settings - Fork 157
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
Process crash while SitemapAndIndexStream
without any map item providered
#392
Comments
should provider us catch if we use express, the express server is down. |
Any news on this? Isn't this very bad...? |
Note that there is a bug in the example program that makes it appear that the error is uncatchable, but the error is, in fact, catchable. import { finished } from 'stream/promises';
...
sms.end(); // (this does not wait for the writing to finish)
// Wait for writing to finish and throw any caught errors
await finished(sms); When I add a test for this, it does indeed catch the error thrown from There is a bug in the library though:
The fix is to split the closing of the current file from the opening of the next file. |
This is related to #362 but this needs specific examples and documentation for |
Describe the bug
Process crash while
SitemapAndIndexStream
without any map item provideredExpected behavior
work correctly , should not crash the program process.
Context:
"sitemap": "^7.1.1"
Additional context
The text was updated successfully, but these errors were encountered: