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 TypeError: Cannot read property 'replace' of undefined

See original GitHub issue

[Enter steps to reproduce below:]

Atom Version: 1.2.1 System: Mac OS X 10.10.3 Thrown From: Remote-FTP package, v0.7.10

Stack Trace

Uncaught TypeError: Cannot read property ‘replace’ of undefined

At /Users/sofiane/.atom/packages/Remote-FTP/lib/client.js:82

TypeError: Cannot read property 'replace' of undefined
    at /Users/sofiane/.atom/packages/Remote-FTP/lib/client.js:82:44
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:380:3)

Commands

     -0:45.9.0 application:add-project-folder (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:32.9.0 remote-ftp:create-sftp-config (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)
     -0:23.4.0 core:paste (atom-text-editor.editor.is-focused)
  2x -0:20.4.0 core:save (atom-text-editor.editor.is-focused)
     -0:00.7.0 remote-ftp:connect (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config

{
  "core": {}
}

Installed Packages

# User
Remote-FTP, v0.7.10

# Dev
No dev packages

Issue Analytics

  • State:open
  • Created 8 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
pixelomocommented, Jan 27, 2016

I’m getting the same issue, my remote field is set to:

“remote_path”: “/”,

0reactions
sitoexpresscommented, Apr 22, 2022

Happened to me today, Remote FTP can see 4 files within a folder (receipt.php, receipt2.php, undefined, undefined). The only actual file with the folder is receipt.php, I cannot understand where the others come from (they’re not on the server, only Remote FTP sees them).

The error is triggered when I try to download these non-existent files

Read more comments on GitHub >

github_iconTop Results From Across the Web

[SOLVED] Cannot Read Property 'replace' of Undefined in JS
To fix the “cannot read property 'replace' of undefined” error, perform an undefined check on the variable before calling the replace() method ......
Read more >
Cannot read property 'replace' of Undefined in JS - Isotropic
In the above example, the first string was not initialized so the error showed up. The second string worked fine at first because...
Read more >
cannot read property 'replace' of undefined In Grid - Stack ...
I think jQuery cannot find the element. First of all find the element var rowTemplate= document.getElementsByName("rowTemplate");.
Read more >
TypeError: Cannot read property 'replace' of undefined
So I tried to learn how to do this on my own by taking two video courses about node and cheerio on udemy...
Read more >
Cannot read property 'replace' of undefined" : r/HTML - Reddit
"Uncaught TypeError: Cannot read property 'replace' of undefined" ... Any idea on what I should do to fix this issue? ... In your...
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