34
Views
7
Comments
Solved
[Shared Folder] Not enough credits error
Question
shared-folder
Service icon
Forge asset by Leonardo Fernandes
Application Type
Service

Hi,

Since the new update, some larger files (7.7MB) are giving us "Not Enough Credits" error, is there something we are doing wrong or something we need to change on the target server?

Thanks.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Ok, I made a mistake in 2.0.2. Version 2.0.3 should fix it.

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Hi Olivier. Are you trying to read or write larger files?

Could you also share a stack trace of the error?

UserImage.jpg
Olivier Pilon

Hi, we are trying to write a file (7.7MB) in this case and here is what I see in Service center, this is working with the older non-SMB version of the component:

Not enough credits
   at SMBLibrary.Client.SMB2Client.TrySendCommand(SMB2Command request, Boolean encryptData)
   at SMBLibrary.Client.SMB2FileStore.WriteFile(Int32& numberOfBytesWritten, Object handle, Int64 offset, Byte[] data)
   at OutSystems.NssSmbClient.Smb.SmbTreeConnection.WriteFile(String filePath, Byte[] contents)
   at OutSystems.NssSmbClient.CssSmbClient.MssWriteFile(String ssHostname, RCAuthenticationRecord ssAuthentication, String ssShare, String ssFilePath, Byte[] ssContents)
   at ssFaskenSecurePortalRequests_CS.RssExtensionSmbClient.MssWriteFile(HeContext heContext, String inParamHostname, IRecord inParamAuthentication, String inParamShare, String inParamFilePath, Byte[] inParamContents) 

2019-07-08 11-04-35
Leonardo Fernandes
 
MVP

Thanks for the report. Could you check if version 2.0.2 fixes your problem?

UserImage.jpg
Olivier Pilon

Sadly it's not fixed on my end, here's the stack(Looks like the same error) : 

Not enough credits
   at SMBLibrary.Client.SMB2Client.TrySendCommand(SMB2Command request, Boolean encryptData)
   at SMBLibrary.Client.SMB2FileStore.WriteFile(Int32& numberOfBytesWritten, Object handle, Int64 offset, Byte[] data)
   at OutSystems.NssSmbClient.Smb.SmbTreeConnection.WriteFile(String filePath, Byte[] contents)
   at OutSystems.NssSmbClient.CssSmbClient.MssWriteFile(String ssHostname, RCAuthenticationRecord ssAuthentication, String ssShare, String ssFilePath, Byte[] ssContents)
   at ssFaskenSecurePortalRequests_CS.RssExtensionSmbClient.MssWriteFile(HeContext heContext, String inParamHostname, IRecord inParamAuthentication, String inParamShare, String inParamFilePath, Byte[] inParamContents) 


2019-07-08 11-04-35
Leonardo Fernandes
 
MVP
Solution

Ok, I made a mistake in 2.0.2. Version 2.0.3 should fix it.

UserImage.jpg
Olivier Pilon

It now works, many thanks!

2025-08-09 07-22-56
Bharathi Selvaraj

Version : 2.2.3

Not enough credits

   at SMBLibrary.Client.SMB2Client.TrySendCommand(SMB2Command request, Boolean encryptData)
   at SMBLibrary.Client.SMB2FileStore.Disconnect()
   at OutSystems.NssSmbClient.CssSmbClient.MssReadFile(String ssHostname, RCAuthenticationRecord ssAuthentication, String ssShare, String ssFilePath, Byte[]& ssContents)
   at ssUCL_API_CS.RssExtensionSmbClient.MssReadFile(HeContext heContext, String inParamHostname, IRecord inParamAuthentication, String inParamShare, String inParamFilePath, Byte[]& outParamContents) 

@Leonardo Fernandes  Kindly help with this Issue .

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.