Rishikant181 / Rettiwt-API

A CLI tool and an API for fetching data from Twitter for free!
https://rishikant181.github.io/Rettiwt-API/
MIT License
305 stars 31 forks source link

API_KEY generation issue #456

Closed Skydraw closed 4 months ago

Skydraw commented 4 months ago

Hello,

I have been trying to generate a API_KEY but unfortunetly I get this message when I try it. I removed my 2FA just in case but it doesn't work either.

Maybe the first "." in email adresse is the problem ?

My input is : rettiwt auth login xxxxx.xxxxx@xxx.xxx @xxxxx xxxxxxxxxxxxxxxxx

My output :

/usr/local/lib/node_modules/rettiwt-api/node_modules/https-proxy-agent/dist/index.js:54
        this.proxyHeaders = opts?.headers ?? {};
                                 ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/rettiwt-api/node_modules/rettiwt-auth/dist/Auth.js:57:27)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)

Thanks you !

Rishikant181 commented 4 months ago

Are you using a proxy?

Skydraw commented 4 months ago

No, But i just found my issue and it was a wrong NodeJS version.

It work perfectly now.

Thank you for your job !

Rishikant181 commented 4 months ago

Glad you found it useful!