Open oviniciusfeitosa opened 8 months ago
Additional Attempts to Start the Application:
I have also tried other ways to start the application, but they all resulted in the same ERR_OSSL_UNSUPPORTED
error.
Using ts-node
directly:
I tried running the application with ts-node
directly using the command ts-node src/Api.ts
, but the error still occurred.
Without the --openssl-legacy-provider
option:
I tried starting the application without the --openssl-legacy-provider
option using the command node --experimental-specifier-resolution=node --loader ./loader.mjs src/Api.ts
, but the error persisted.
With different Node.js versions: I also tried using different versions of Node.js, but none of them resolved the issue.
It seems that no matter how I try to start the application, the ERR_OSSL_UNSUPPORTED
error always occurs when calling the Spot.newOrder
and Spot.testNewOrder
methods from the @binance/connector-typescript
library. Any insights or suggestions would be greatly appreciated.
+1
Problem Description: I am encountering an
ERR_OSSL_UNSUPPORTED
error when calling theSpot.newOrder
andSpot.testNewOrder
methods from the@binance/connector-typescript
library. The error occurs both when starting the application with the commandNODE_OPTIONS='--openssl-legacy-provider' node --experimental-specifier-resolution=node --loader ./loader.mjs src/Api.ts
and with the commandnode --experimental-specifier-resolution=node --loader ./loader.mjs src/Api.ts
.The
ERR_OSSL_UNSUPPORTED
error typically indicates that OpenSSL is trying to use an algorithm or key size that is no longer allowed by default with OpenSSL 3.0. This can occur when you are using a newer version of Node.js that includes OpenSSL 3.0, but the code or modules you are using were written for an older version of OpenSSL.Environment:
List of libraries and versions used by pnpm:
{ npm: β10.2.4β, node: β20.11.0β, acorn: β8.11.2β, ada: β2.7.4β, ares: β1.20.1β, base64: β0.5.1β, brotli: β1.0.9β, cjs_module_lexer: β1.2.2β, cldr: β43.1β, icu: β73.2β, llhttp: β8.1.1β, modules: β115β, napi: β9β, nghttp2: β1.58.0β, nghttp3: β0.7.0β, ngtcp2: β0.8.1β, openssl: β3.0.12+quicβ, simdutf: β4.0.4β, tz: β2023cβ, undici: β5.27.2β, unicode: β15.0β, uv: β1.46.0β, uvwasi: β0.0.19β, v8: β11.3.244.8-node.17β, zlib: β1.2.13.1-motley-5daffc7β }
package.json
tsconfig.json
Error Details: The full error is as follows:
Any help in resolving this issue would be greatly appreciated.