1
resposta

Erro persiste mesmo após inserir as variáveis de ambiente

Mesmo após inserir as variáveis de ambiente conforme o professor fez no video, continua dando erro. Aparentemente é algo com o "OPENSSL_CONF" mas eu não tenho muito conhecimento com linux, alguém poderia me ajudar?


~/forum-alura$ node bigquery/criarDataset.js 
(node:15233) UnhandledPromiseRejectionWarning: Error: error:25066067:DSO support routines:dlfcn_load:could not load the shared library
    at Sign.sign (internal/crypto/sig.js:103:29)
    at Object.sign (/home/igor/forum-alura/node_modules/jwa/index.js:152:45)
    at Object.jwsSign [as sign] (/home/igor/forum-alura/node_modules/jws/lib/sign-stream.js:32:24)
    at GoogleToken.requestToken (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/gtoken/build/src/index.js:232:31)
    at GoogleToken.getTokenAsyncInner (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/gtoken/build/src/index.js:166:21)
    at GoogleToken.getTokenAsync (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/gtoken/build/src/index.js:145:55)
    at GoogleToken.getToken (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/gtoken/build/src/index.js:97:21)
    at JWT.refreshTokenNoCache (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/google-auth-library/build/src/auth/jwtclient.js:172:36)
    at JWT.refreshToken (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/google-auth-library/build/src/auth/oauth2client.js:153:24)
    at JWT.getRequestMetadataAsync (/home/igor/forum-alura/node_modules/@google-cloud/common/node_modules/google-auth-library/build/src/auth/oauth2client.js:298:28)
(node:15233) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:15233) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
1 resposta

Olá @Igor Rocha Amorim

Segue esse flow: https://stackoverflow.com/questions/7360602/openssl-and-error-in-reading-openssl-conf-file https://stackoverflow.com/questions/72104449/node-js-crypto-fails-to-sign-pem-key-string-from-file-with-error25066067dso-su