question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught SyntaxError: Unexpected end of JSON input

See original GitHub issue

If i try to upload files in remote ftp (version 1.2.4) with drag and drop i have this issue.

[Enter steps to reproduce:]

Atom: 1.21.0 x64 Electron: 1.6.9 OS: Mac OS X 10.13 Thrown From: remote-ftp package undefined

Stack Trace

Uncaught SyntaxError: Unexpected end of JSON input

At file:///Applications/Atom.app/Contents/Resources/app.asar/static/index.html:1

SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at /packages/remote-ftp/lib/views/directory-view.js:140:30)
    at HTMLLIElement.dispatch (/packages/Remote-FTP/node_modules/jquery/dist/jquery.js:4435:9)
    at HTMLLIElement.elemData.handle (/packages/Remote-FTP/node_modules/jquery/dist/jquery.js:4121:28)

Commands

     -8:36.4.0 application:open (ul.list-inline.tab-bar.inset-panel)
     -7:46.4.0 pane:split-right-and-copy-active-item (ol.tree-view-root.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -7:37.2.0 application:open (atom-pane.pane.active)
     -7:19.1.0 pane:close (div.item-views)
  2x -6:23.2.0 remote-ftp:toggle (div.header.list-item)
     -5:24.6.0 application:open (atom-pane.pane.active)
     -4:13.3.0 pane:split-up-and-copy-active-item (div.header.list-item)

Non-Core Packages

auto-indent 0.5.0 
autoclose-html 0.23.0 
Delete-Whitelines 0.6.3 
doont-spotify 0.1.0 
file-icons 2.1.12 
grammar-tab-colors 0.2.8 
highlight-selected 0.13.1 
pigments 0.40.2 
Remote-FTP 1.2.4 
uikit-atom 0.2.2 

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:12
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
iceteecommented, Apr 18, 2018

I will try to solve it soon. I’m welcome to pull request! 🙊

4reactions
samuelesantonicommented, Oct 20, 2017

For now is impossible upload or download files with drag and drop. I don’t know if there are some package for solve this problem. I hope the developer of Remote FTP help us.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Uncaught SyntaxError: Unexpected end of JSON input
A common error encountered by JavaScript programmers is the Uncaught SyntaxError: Unexpected end of JSON input. This is usually observed when the coder...
Read more >
Uncaught SyntaxError: Unexpected end of JSON input at ...
When you try to parse it as JSON it is converted to a string ( "" ), which is empty, so you reach...
Read more >
Unexpected end of JSON input Error in JavaScript - Stack Diary
The "Unexpected end of JSON input" error is a syntax error that occurs when the JSON you're trying to parse is incomplete or...
Read more >
Fix the unexpected end of input error in JavaScript - Codedamn
One common cause of unexpected end of JSON input error is simply that the JSON data is not well-formed. This means that there...
Read more >
Unexpected end of JSON input Error in JavaScript | bobbyhadz
The "Unexpected end of JSON input" error occurs when trying to parse invalid JSON using the JSON.parse or $.parseJSON methods. Trying to parse...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found