Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid consumer tokens, Docker Image #514

Open
BotJames312 opened this issue Jan 24, 2024 · 0 comments
Open

Invalid consumer tokens, Docker Image #514

BotJames312 opened this issue Jan 24, 2024 · 0 comments

Comments

@BotJames312
Copy link

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 execute the code on vs code, and work normally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant