Skip to content

Instantly share code, notes, and snippets.

@hwclass
Created June 5, 2022 22:50
Show Gist options
  • Save hwclass/aff564d0c79c719a77311c88c54a5674 to your computer and use it in GitHub Desktop.
Save hwclass/aff564d0c79c719a77311c88c54a5674 to your computer and use it in GitHub Desktop.
Error: read ECONNRESET
// ...
export const getStaticProps = async () => {
const ECONNRESET_ERROR_SKIP_PAYLOAD = {
props: { hede: true }
}
try {
process.on('uncaughtException', (err) => console.log('message here...', err));
return ECONNRESET_ERROR_SKIP_PAYLOAD
} catch (err) {
return err
// or return ECONNRESET_ERROR_SKIP_PAYLOAD
}
};
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment