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

TypeError: Cannot read properties of undefined (reading 'data') #56

Open
JorgeHabib opened this issue Dec 5, 2021 · 2 comments
Open

Comments

@JorgeHabib
Copy link

Toda vez que tento utilizar a opcao 'raw-token' para login ele me retorna o seguinte erro:

/node_modules/cei-crawler/src/lib/AxiosWrapper.js:42
            const msgStr = e.response.data != null ? (e.response.data.message || e.response.data.trim()) : e.message;
                                      ^

TypeError: Cannot read properties of undefined (reading 'data')
@Menighin
Copy link
Owner

Menighin commented Jan 1, 2022

Oi Jorge, me desculpe o sumiço. Fim de ano dificil.
Consegue compartilhar trecho de codigo de como voce esta usando?

@JorgeHabib
Copy link
Author

JorgeHabib commented Jan 16, 2022

Boa tarde, para todos nós!!

Vou deixar anexado o código utilizado, feliz ano novo

const ceiCrawler = new CeiCrawler('user', 'password', { 
    loginOptions: {
        strategy: 'raw-token'
    },
    auth: {
        "cache-guid": "34****626796-*****-4d52-****-1cdf0412****",
        token: "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6IlZ4Q2VKMmtweTdwN1EzeEJTQ3cyREt3Y291T3RXUm82SXF3SjJXLUF3UWcifQ.eyJpc3MiOiJodHRwczovL2IzaW52ZXN0aWRvci5iMmNsb2dpbi5jb20vYWE1YWM3MDUtODczYi00YWZjLWEyOWQtZjBhZGI4OWNjZjVjL3YyLjAvIiwiZXhwIjoxNjM4NjgyMzAxLCJuYmYiOjE2Mzg2Nzg3MDEsImF1ZCI6IjgwMjM0OGU2LTZmMjMtNGQ5OS05NDQ1LTQ1ODM2ODYxY2RmNCIsIm9pZCI6IjQ2Yjk3OGI5LWY5OGUtNDNmMC1iYTAxLTkxNjU0ZTA4OWQ4ZCIsIlRvVUludmVzdGlkb3JDb25zZW50UmVxdWlyZWQiOmZhbHNlLCJQUEludmVzdGlkb3JDb25zZW50UmVxdWlyZWQiOmZhbHNlLCJleHRlbnNpb25fVG9VSW…NE10NktkbGltd2tWYU9UZ2cwT2pqdTJEOGRaQVBSR0tXIiwic2NwIjoiUmVhZC5BbGwiLCJhenAiOiI3MTFiMDY3Ny0zNjcyLTQ0NjQtYjE4My03NjczNGZiMjE5MDciLCJ2ZXIiOiIxLAiLCJpYXQiOjE2Mzg2Nzg3MDF9.RotgA4zSRfQ0-QUX9m2psdB1lIgWK4ZlZ3_zNlsPpkciD_eNYGFwmsRqPSTMVyyNj40TVI-AO9yB8G1zqznSg7Xt8La_LeDQ1-ZsNTTV21kP0AGOofbMWFAsIdSeVFOTYF3tg-GcP03dQfqf8xB5zZKoVd8ZBMPrJq2R1DtH-Fsibg58DS2pclmyBTzX-IFI28RKqiR6k3fHKIZOXJSQV9OjIr1Xd6EmF0jbiNgUT8EzHm979ib-8K94md4m-uij71tSu3g37TZSGqrt4oL_P8C-Kav4FhSFqlVmDpBW-p5CWv8AkuvhGRzqmuBrfccngBLODKohPdrtrJbPm0d3Qg"
    }
});

Ocultei as credenciais

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

2 participants