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?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- TCP vs UDP – What is a TCP connection? [duplicate]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Java default constructor
- How do I make a delay in Java?
- did you specify the right host or port? error on Kubernetes
- How does Java’s PriorityQueue differ from a min-heap?
- No “Proceed Anyway” option on NET::ERR_CERT_INVALID in Chrome on MacOS
- What is a Memory Heap?
- 403 Forbidden vs 401 Unauthorized HTTP responses
- Advanced AREL or just Rails Query for has_many through search by association
- “If not” condition statement in python
- How can I sort a dictionary by key?
- What does ERR_SPDY_PROTOCOL_ERROR mean in nginx?
- What is the difference between a strongly typed language and a statically typed language?
- SyntaxError: multiple statements found while compiling a single statement
- Error in Python script “Expected 2D array, got 1D array instead:”?
- segmentation fault 11 in C++ on Mac
- How to append text to a text file in C++?
- expected assignment or function call: no-unused-expressions ReactJS
- How do I learn WebGL the fast way?
- What is the meaning of t=”shared” in a formula element?
- MySQL Every derived table must have its own alias
- How to print out a backslash in LaTeX
- How can I fix MySQL error #1064?
- AttributeError: can’t set attribute
- How to kill a running Spark application?
- Log to the base 2 in python
- (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated \UXXXXXXXX escape
- fix java.net.SocketTimeoutException: Read timed out
- Sqoop Incremental Import
- What does it mean by word size in computer?
- Python setup.py develop vs install
- Export html table data to Excel using JavaScript / JQuery is not working properly in chrome browser
- Hidden field “ufprt” being added to Razor Umbraco Form – Why?
- Android setOnClickListener method – How does it work?
- Convert a CERT/PEM certificate to a PFX certificate
- What is process.env.PORT in Node.js?
- enum to string in modern C++11 / C++14 / C++17 and future C++20
- ORA-29913: error in executing ODCIEXTTABLEOPEN callout when inserting csv into oracle
- How do I get monitor resolution in Python?
- git: fatal unable to auto-detect email address
- R error which says “Models were not all fitted to the same size of dataset”
- How to check whether a Button is clicked by using JavaScript
- jQuery onclick not firing on dynamically inserted HTML elements?
- What is correct media query for IPad Pro?
- Eclipse java debugging: source not found
- Disable Chrome strict MIME type checking
- simple IPython example raises exception on sys.exit()
- How to get a minecarft session ID?
- Factory Pattern. When to use factory methods?
- How to send a PUT/DELETE request in jQuery?
- Where are the ampersand and vertical bar characters used in Python?
- Which font is used in MS-DOS?
- Google Gmail – “The conversation that you requested could not be loaded”
- apt-get for Cygwin?
- Python: What OS am I running on?
- ER-Diagram: Ternary Relationship – How to read properly?
- How can I diff 2 files while ignoring leading white space
- Converting time stamps in excel to dates
- Responsive media query not working in Google Chrome
- The name ‘InitializeComponent’ does not exist in the current context
- How do I debug a stand-alone VBScript script?
- Why define PI = 4*ATAN(1.d0)
- Java: Not a statement
- How to force JavaScript to deep copy a string?
- Passing a hexadecimal value into a module in Verilog
- Empty functions in Javascript
- Solr: how to delete a collection?
- How to print a int64_t type in C
- How to store data in the flash memory of a Arduino Uno (ATmega328p)
- What is a blob URL and why it is used?
- How to apply a patch?
- TwentyTwentyTwo – How to add PHP logic to Post templates?
- How can I trash multiple posts at once from the front end?
- Maintenance holding page while migrating website
- How to get a current post’s blog id
- Will has_category be true is used on index and one of queried posts has the category?
- Chrome Dev Tools console says every page in my blog has link to http://maps.google.com [closed]
- How to get a value from wp_dropdown_user?
- Customized Essay Writing Service
- Exclude categories with only sticky posts OR count sticky post of specific category
- How to Unban an IP properly with Fail2Ban
- Difference between KVM and QEMU
- Top level domain/domain suffix for private network?
- Are SSD drives as reliable as mechanical drives (2013)?
- The Joel Test for system administrator jobs
- How do I rename a task in Task Scheduled on Windows Server 2008 R2
- How do I get the history of “apt-get install” on Ubuntu?
- Why does x86 represent 32bit when x64 represents 64bit? [closed]
- How to reload screenrc without restarting screen?
- How long before an s3 bucket can be created with same name after deletion?
- Software vs hardware RAID performance and cache usage