Bootstrap error:

Hi Team,

I got an error when running RPA when client initialization in C# code.

client = new Client();

OpenIAP.LibraryLoadError: ‘Bootstrap error: Error: failed to read response bytes: error decoding response body.’

Is anyone got this error?

then you create the Client object, it will download the library matching your operating system from github and place it in your temp folder.
So based on the error, it looks like you have problems connecting to github.com from c# ?
Are you behind a proxy server ?

Hi Allan,

I didn’t use any proxy and DLL also in the folder.

is any suggetion for resolve this issue?

This is the code that throws the error:

IntPtr pathPtr = bootstrap(); // returns string pointer to the library path
libPath = Marshal.PtrToStringAnsi(pathPtr);
if (string.IsNullOrEmpty(libPath))
{
 throw new LibraryLoadError("Failed to get library path from bootstrap");
}
if (libPath.Contains("Error"))
{
 throw new LibraryLoadError($"Bootstrap error: {libPath}");
}
clientPtr = create_client();

It means the DLL does not exist, is corrupted, or it cannot download it. Try deleting the openiap-windows-x64.dll from temp, and see if it re-downloads it. Try opening it and see if it contains an HTTP error and not real code.
Also, try adding a “DEBUG” environment variable with the value of “1.” This will make it print out debug information during the bootstrap process.