Skip to content
Errors
Commands
Flags
Config
Cheat sheets
Changes
Compat
Codes
Compare
Glossary
Search
Ctrl K
Browse
Error Messages
Commands
Flags & Options
Config Reference
Cheat Sheets
Version Changes
Compatibility
Codes & Tables
X vs Y
Glossary
All tools
Home
Error Messages
JSON
Protocols & standards
JSON Error Messages
JavaScript Object Notation.
All JSON pages
SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON
JSON.parse fails with Unexpected token '<' when the response is an HTML page, usually an error or login page, not JSON. Check the status and content type first.
Esc