This particular error is one annoying fact about v8. In most cases your JavaScript is broken in some way. For example missing a }
or something like that.
Example given, this will yield “Unexpected end of input” too:
eval('[{"test": 4}') // notice the missing ]
But the root cause of the problems seems to be that the requested JSON url has a Content-Type of text/html
which Chrome apparently tries to parse as HTML, which then results in the unexpected end of input due to the fact that the included image tags are being parsed.
Try setting the Content-Type to text/plain
I think it should fix the issues.
Nonetheless, V8 could do a better Job about telling one exactly where the input ended unexpectedly.
Related Posts:
- PHP parse/syntax errors; and how to solve them
- Resource interpreted as stylesheet but transferred with MIME type text/html (seems not related with web server)
- Paused in debugger in chrome?
- Disable Chrome pinch zoom for use in kiosk
- Chrome Broweser: csi.gstatic.com keeps loading
- How to see stdout of ansible commands?
- Using prevNext Modx Addon
- :wq! command in vim
- how to set the background color of the status bar during the launching phase [duplicate]
- api-ms-win-crt-runtime-l1-1-0.dll is missing when opening Microsoft Office file [closed]
- When is K 1024 and when is it 1000?
- What is a MIME type?
- Logitech/LGHUB Lua – Loop with break
- are there dictionaries in javascript like python?
- How to define a two-dimensional array?
- How can I convert MP3 file to a Base64 encoded string? [closed]
- Understanding The Modulus Operator %
- Understanding the main method of python [duplicate]
- Dial pad to get phone number (with Android button images)
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- How is the AND/OR operator represented as in Regular Expressions?
- TypeError: only integer scalar arrays can be converted to a scalar index with 1D numpy indices array
- Istio Ingress resulting in “no healthy upstream”
- Why is it not possible to fake an IP address?
- How to open a “-” dashed filename using terminal?
- Substring in excel
- What is a LAMP stack?
- What is a sanity test/check
- What is the difference between POST and PUT in HTTP?
- What is the difference between POST and PUT in HTTP?
- How to find Google’s IP address?
- What exactly is a VBO in OpenGL?
- What and where are the stack and heap?
- ping response “Request timed out.” vs “Destination Host unreachable”
- Authentication versus Authorization
- What is a reverse shell?
- How does npm start work? What all processes are happening in the background?
- What is an instance variable in Java?
- What is the := operator?
- How to re-enable right click so that I can inspect HTML elements in Chrome?
- What is tail recursion?
- Discord music bot not working
- What does “:=” mean in Pseudocode? [closed]
- Why am I getting error for apple-touch-icon-precomposed.png
- Does mobile Google Chrome support browser extensions?
- No results found on kibana -> discover
- What is Xpenology? Is it Linux related thing?
- ‘Syntax Error: invalid syntax’ for no apparent reason
- Why do we need virtual functions in C++?
- Chrome theme new tab background does not fill correctly
- What is a CSRF token? What is its importance and how does it work?
- Create blank image in Imagemagick
- How to fix ‘Unchecked runtime.lastError: The message port closed before a response was received’ chrome issue?
- Official definition of CSCI (Computer Software Configuration Item)
- How could I ping @here in Discord.py?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- What does %>% mean in R [duplicate]
- super() in Java
- Visual List of iOS Fonts?
- What is useState() in React?
- TCP vs UDP – What is a TCP connection? [duplicate]
- How do I copy folder with files to another folder in Unix/Linux? [closed]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Eclipse IDE for Java – Full Dark Theme
- Amazon Linux: apt-get: command not found
- Google Calendar API event insert always return 404 “not found” error
- ssh connect Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
- What’s the syntax for mod in java
- What does the Java assert keyword do, and when should it be used?
- How to get rid of the “No bootable medium found!” error in Virtual Box? [closed]
- How do I fix a “Expected Primary-expression before ‘)’ token” error?
- I am getting Failed to load resource: net::ERR_BLOCKED_BY_CLIENT with Google chrome
- Using getline() with file input in C++
- STDERR? What is it? What are its common uses?
- UML Sequence diagram auto-numbering in Visual Paradigm
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- How do I make a delay in Java?
- Casting variables in Java
- Chrome hangs after certain amount of data transfered – waiting for available socket
- Handling file renames in Git
- What’s the net::ERR_HTTP2_PROTOCOL_ERROR about?
- PermissionError: [Errno 13] in Python
- Why are there two ways to unstage a file in Git?
- What is a stack trace, and how can I use it to debug my application errors?
- When you use ‘badidea’ or ‘thisisunsafe’ to bypass a Chrome certificate/HSTS error, does it only apply for the current site? [closed]
- ‘git’ is not recognized as an internal or external command
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- did you specify the right host or port? error on Kubernetes
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- How does Java’s PriorityQueue differ from a min-heap?
- Error OPTIONS net::ERR_CONNECTION_REFUSED
- What is archive mode in rsync?
- How to get Twitch watchtime (like streamelements)
- What is the difference between functional and non-functional requirements?
- Chrome not Firefox are not dumping to SSLKEYLOGFILE variable
- how to use cookie-free domains (yslow)
- How to accept space in regex?
- Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException Error