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
Problem Description:
I am encountering an ERR_OSSL_UNSUPPORTED error when calling the Spot.newOrder and Spot.testNewOrder methods from the @binance/connector-typescript library. The error occurs both when starting the application with the command NODE_OPTIONS='--openssl-legacy-provider' node --experimental-specifier-resolution=node --loader ./loader.mjs src/Api.ts and with the command node --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.
Error: error:1E08010C:DECODER routines::unsupported
at Object.signOneShot (node:internal/crypto/sig:163:15) at Spot.prepareSignedPath (/opt/test/node_modules/.pnpm/@[email protected]/node_modules/@binance/connector-typescript/dist/index.js:5057:27)
at Spot.newOrder (/opt/test/node_modules/.pnpm/@[email protected]/node_modules/@binance/connector-typescript/dist/index.js:3058:24)
at executeTradeTrade (file:///opt/test/src/tools/BinanceTools.ts:158:42)
at executeTradeOpportunity (file:///opt/test/src/components/Trade.ts:140:30)
at file:///opt/test/src/Api.ts:74:34 at Layer.handle [as handle_request] (/opt/test/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:95:5)
at next (/opt/test/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/route.js:144:13)
at Route.dispatch (/opt/test/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/route.js:114:3)
at Layer.handle [as handle_request] (/opt/test/node_modules/.pnpm/[email protected]/node_modules/express/lib/router/layer.js:95:5)
{ library: ‘DECODER routines’, reason: ‘unsupported’, code: ‘ERR_OSSL_UNSUPPORTED’ }
Any help in resolving this issue would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: