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.

Hi there, When i try to upload to a website hosted on wpengine.com i get the error “Invalid handle”. This happens only on Visual Studio Code 1.56, on my laptop ( that is still running 1.55 ) everything works normally.

I know that this project is basically unmaintained, what can i do to solve this?

[06-01 07:55:40] [warn] Can't set modified time to the file because Invalid handle
[06-01 07:55:41] [error] Error: Invalid handle
	at SFTPStream._transform (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js:412:27)
	at SFTPStream.Transform._read (internal/streams/transform.js:205:10)
	at SFTPStream._read (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/sftp.js:183:15)
	at SFTPStream.Transform._write (internal/streams/transform.js:193:12)
	at writeOrBuffer (internal/streams/writable.js:358:12)
	at SFTPStream.Writable.write (internal/streams/writable.js:303:10)
	at Channel.ondata (internal/streams/readable.js:719:22)
	at Channel.emit (events.js:315:20)
	at addChunk (internal/streams/readable.js:309:12)
	at readableAddChunk (internal/streams/readable.js:284:9)
	at Channel.Readable.push (internal/streams/readable.js:223:10)
	at SSH2Stream.<anonymous> (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2/lib/Channel.js:167:15)
	at SSH2Stream.emit (events.js:315:20)
	at parsePacket (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:3288:10)
	at SSH2Stream._transform (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:694:13)
	at SSH2Stream.Transform._read (internal/streams/transform.js:205:10)
	at SSH2Stream._read (/home/epizefiri/.vscode/extensions/liximomo.sftp-1.12.9/node_modules/ssh2-streams/lib/ssh.js:253:15)
	at SSH2Stream.Transform._write (internal/streams/transform.js:193:12)
	at writeOrBuffer (internal/streams/writable.js:358:12)
	at SSH2Stream.Writable.write (internal/streams/writable.js:303:10)
	at Socket.ondata (internal/streams/readable.js:719:22)
	at Socket.emit (events.js:315:20)
	at addChunk (internal/streams/readable.js:309:12)
	at readableAddChunk (internal/streams/readable.js:284:9)
	at Socket.Readable.push (internal/streams/readable.js:223:10)
	at TCP.onStreamRead (internal/stream_base_commons.js:188:23) when local ➞ remote /home/epizefiri/Projects/SUMUP/plexPayout/admin/partials/payout_settlement_master.php

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
as1414commented, Jun 18, 2021

#919 worked for me as well… thank you, @IlanVivanco

Updating the SSH2 package has fixed the issue for me, just need to change the ssh2 version 1.1.0 in the package.json "extensions/liximomo.sftp-1.12.9/package.json, and run npm install ref: https://www.npmjs.com/package/ssh2

I’m on Win10 so I went to c:\users\username.vscode\extensions\liximomo.sftp-1.12.9\package.json changed “ssh2”: “^x.x.x” to “ssh2”: “^1.1.0” Then opened terminal in same directory (c:\users\username.vscode\extensions\liximomo.sftp-1.12.9) and ran> npm install restart vscode (didn’t work until I restarted vscode)

1reaction
IlanVivancocommented, Jun 4, 2021

Follow the #919 comment to fix it!

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Invalid Handle" error - Microsoft Community
It might be caused by a corrupted or damaged Windows system files, outdated device driver, a software conflict, or even an infection. That...
Read more >
FIX: The handle is invalid error in Windows 10/11
The handle is invalid error affects Windows 10 users when they try to log in to their computers. · The main causes for...
Read more >
INVALID_HANDLE Error in Windows 10 - Easy File Renamer
The Invalid Handle error is a common issue in Windows 10. It usually occurs when new updates are added to the Windows but...
Read more >
The Handle Is Invalid Error on Windows 10 FIX [Tutorial]
The Handle Is Invalid Error on Windows 10 FIX [Tutorial]This error affects Windows 10 users when they try to log in to their...
Read more >
The Handle Is Invalid Error on Windows 10 - MajorGeeks.Com
"The handle is invalid" error can appear when you are logging in, and the problem is usually related to a Windows Update problem...
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