You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am from the Azure Logic apps team. One of our users have a custom SFTP server implemented in Golang and when we try to read a file we get the following error:
Renci.SshNet.Common.SshException: invalid argument
at Renci.SshNet.Sftp.SftpSession.RequestRead(Byte[] handle, UInt64 offset, UInt32 length)
at Renci.SshNet.Sftp.SftpFileStream.Read(Byte[] buffer, Int32 offset, Int32 count)
Our code looks like this. We are using 2024.1.0 version
using(varsftpClient=newSftpClient(host,port,username,password)){sftpClient.Connect();if(sftpClient.IsConnected){varfileMetadata=sftpClient.GetAttributes(filePath);varbuffer=newbyte[fileMetadata.Size];using(varfileStream=sftpClient.Open(path:filePath,mode:FileMode.Open,access:FileAccess.Read)){awaitfileStream.ReadAsync(buffer,0,buffer.Length);}}else{Console.WriteLine("Failed to connect to the SFTP server.");}// DisconnectsftpClient.Disconnect();}
On checking the server traces we see this error there runtime error: invalid memory address or nil pointer dereference.
Any idea what could be causing this?
The text was updated successfully, but these errors were encountered:
It could be bad input from SSH.NET but given an error talking about memory addresses and nil pointers I would start by looking at the server to see what is causing that
@Rob-Hague at this point all we see from the server is runtime error: invalid memory address or nil pointer dereference and the server is owned by a third party and we have no control over it. Is it possible to add some logging in SSH.NET to figure out if its a bad input ?
I am from the Azure Logic apps team. One of our users have a custom SFTP server implemented in Golang and when we try to read a file we get the following error:
Our code looks like this. We are using 2024.1.0 version
On checking the server traces we see this error there
runtime error: invalid memory address or nil pointer dereference
.Any idea what could be causing this?
The text was updated successfully, but these errors were encountered: