This repository was archived by the owner on Feb 5, 2022. It is now read-only.
Misleading error message "... is not a Buffer" and strange path#32
Open
christianor wants to merge 3 commits intospmjs:masterfrom
Open
Misleading error message "... is not a Buffer" and strange path#32christianor wants to merge 3 commits intospmjs:masterfrom
christianor wants to merge 3 commits intospmjs:masterfrom
Conversation
…when something goes wrong. fixed path problems when file was not accessable on destination (path.join)
lib/client.js
Outdated
Author
There was a problem hiding this comment.
of course i ment public :-D 👍
Contributor
There was a problem hiding this comment.
@christianor I think @Narigo has found a typo. It is public, not pubic.
|
A better error message than |
synced with master branch of original repo
|
This needs to be merged into master. Files with a chmod of 655 can be inaccessible through this module yet the SSH2 module actually returns Error("Permission denied") as the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I had the problem that on my destination i had a file that was called like a folder on the source directory. So scp failed to access (open) the handle on the destination.
I got a misleading error, it unfortunately took me a few hours to find the cause of this error:
write /home/pi/work/public/scripts/app.js/app.js // if error then path.join causes this strange path
transfer 1/1 data
Fatal error: handle is not a Buffer