I'm trying run my code on docker, but when i try make 'docker run -p 1000:1000 test' i receive this on Docker Desktop:
/usr/src/app/node_modules/twitter-api-v2/dist/cjs/client-mixins/request-maker.mixin.js:164
throw new Error('Invalid consumer tokens');
^
Error: Invalid consumer tokens
at ClientRequestMaker.buildOAuth (/usr/src/app/node_modules/twitter-api-v2/dist/cjs/client-mixins/request-maker.mixin.js:164:19)
at ClientRequestMaker.initializeToken (/usr/src/app/node_modules/twitter-api-v2/dist/cjs/client-mixins/request-maker.mixin.js:121:32)
at new TwitterApiBase (/usr/src/app/node_modules/twitter-api-v2/dist/cjs/client.base.js:18:32)
at new TwitterApi (/usr/src/app/node_modules/twitter-api-v2/dist/cjs/client/index.js:14:1)
at Object.<anonymous> (/usr/src/app/RedesSociais/Client.js:3:16)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Module._load (node:internal/modules/cjs/loader:938:12)
at Module.require (node:internal/modules/cjs/loader:1115:19)
I'm trying run my code on docker, but when i try make 'docker run -p 1000:1000 test' i receive this on Docker Desktop:
I execute the code on vs code, and work normally.