ERR_CRYPTO_INVALID_STATEERR_CRYPTO_INVALID_STATE
A crypto operation was performed in an invalid state.
SyntaxError: JSON.parse unexpected characterJSON.parse() encountered invalid JSON syntax, such as single quotes, trailing commas, or unquoted keys.
The string passed to JSON.parse() is not valid JSON. Common issues include using single quotes instead of double quotes, trailing commas, comments in JSON, unquoted property names, or the string being HTML/XML instead of JSON.
Validate the JSON string using a JSON validator. Ensure all strings use double quotes, remove trailing commas and comments. Log the raw string before parsing to see what you are actually trying to parse.
JSON.parse("{'key': 'value'}"); // SyntaxError: single quotes invalid in JSONERR_CRYPTO_INVALID_STATEA crypto operation was performed in an invalid state.
ERR_FS_CP_DIR_TO_NON_DIRAn attempt was made to copy a directory to a non-directory destination.
ERR_INVALID_RETURN_VALUEA function returned a value of an unexpected type.
ReferenceError: x is not definedA variable was referenced that has not been declared in any accessible scope.
ERR_NETWORK_IMPORT_DISALLOWEDA network import (HTTP/HTTPS) was attempted but is not allowed by the current Node.js configuration.
RangeError: Invalid array lengthAn array was created with an invalid length, such as a negative number or a non-integer.