DemonMartin / tlsClient

A wrapper for bogdanfinn/tls-client based on ffi-rs for unparalleled performance and usability. Inspired by @dryft/tlsclient.
https://www.npmjs.com/package/tlsclientwrapper
16 stars 1 forks source link

Crash during the launch of any request #5

Closed mirikqq closed 1 month ago

mirikqq commented 1 month ago

I'm trying to run the code from the example, but the application crashes (without errors, just crash, last node logs message npm verb exit 3221226356) Mb need to install some deps like any dll or go libs? Running via node index.js

node ver: v20.11.0 os: win11 x64

index.js

import tlsClient from "tlsclientwrapper";
const client = new tlsClient();

console.log(await client.get("https://example.com/"));

package.json

{
  "name": "test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type": "module",
  "scripts": {
    "test": "node index.js"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "tlsclientwrapper": "^1.4.3"
  }
}
DemonMartin commented 1 month ago

ffi-rs seems to have changed something which causes all fresh installations to not correctly work.

I have pushed a new Update v2.0.0 where I switched from ffi-rs to koffi. Please try the new Version and let me know if that fixed your Issue.

mirikqq commented 1 month ago

ffi-rs seems to have changed something which causes all fresh installations to not correctly work.

I have pushed a new Update v2.0.0 where I switched from ffi-rs to koffi. Please try the new Version and let me know if that fixed your Issue.

Yep, it works