Seeing red errors
Uncaught SyntaxError: Unexpected token <
in your Chrome developer’s console tab is an indication of HTML in the response body.
What you’re actually seeing is your browser’s reaction to the unexpected top line <!DOCTYPE html>
from the server.
More Related Contents:
- Why are regular expressions taking the helm in my JavaScript, and how do I insist “this is a string”? [closed]
- console.log() shows the changed value of a variable before the value actually changes
- Get the real width and height of an image with JavaScript? (in Safari/Chrome)
- Force DOM redraw/refresh on Chrome/Mac
- How do you launch the JavaScript debugger in Google Chrome?
- Chrome 65 blocks cross-origin . Client-side workaround to force download?
- Console.log showing only the updated version of the object printed
- How to simulate key presses or a click with JavaScript?
- Cross-origin data in HTML5 canvas
- JavaScript: Is there a way to get Chrome to break on all errors?
- clear javascript console in Google Chrome
- How can a Chrome extension save many files to a user-specified directory?
- Open Safari / Google Chrome developer tools programmatically from JavaScript
- Modify HTML of loaded pages using chrome extensions
- How can I log an HTML element as a JavaScript object?
- Google Chrome Javascript Debugger and Content Scripts
- Cannot set cookies in Javascript
- Making a Chrome Extension download a file
- Can’t use “download” as a function name in javascript
- Get cursor or text position in pixels for input element
- request stalled for a long time occasionally in chrome
- Chrome Extension “Refused to load the script because it violates the following Content Security Policy directive”
- Javascript: Let user select an HTML element like Firebug?
- HTML5 drop event doesn’t work unless dragover is handled
- What does the “System” category of records mean in Chrome Timeline profiling tool?
- Print repeating Page headers in Chrome [closed]
- 307 Redirect when loading analytics.js in Chrome
- DOM Element Width before Appended to DOM
- Disable brower’s auto scroll after a page refresh?
- Chrome Extension get selected text