GENERAL_ERROR
Type: {errType: supertokens.Error.GENERAL_ERROR, err: any}
- The
err
object inside the thrown error will be the actual error generated by whatever cause this error. - This is the most general type of error. Can be thrown for a variety of reasons:
- Connection issues to SuperTokens instance
- Something went wrong while setting headers
- Generic "Something went wrong" errors.
- The way to handle this error is to simply send a status code of
500
- This is an
enum
and thenumber
value of this (as seen on the console) is1000