Created
June 5, 2022 22:50
-
-
Save hwclass/aff564d0c79c719a77311c88c54a5674 to your computer and use it in GitHub Desktop.
Error: read ECONNRESET
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ... | |
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