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

[getUserByUsername] Cannot read property 'user' of undefined with valid user #239

Closed
wemersonrv opened this issue Mar 19, 2021 · 3 comments

Comments

@wemersonrv
Copy link

Hello,

i'm receiving the message Cannot read property 'user' of undefined when try to run the function getUserByUsername

const cookieStore = new FileCookieStore('./session.json')

const client = new Instagram({
   username: 'my-username',
   password: 'mypassword',
   cookieStore,
})

await client.login()

const user = await client.getUserByUsername({
   username: client.credentials.username,
})
TypeError: Cannot read property 'user' of undefined
    at D:\DadosImportantes\dev\Projetos\WemersonRV\insta-stories-test\node_modules\instagram-web-api\lib\index.js:152:34
@MonsieurBibo
Copy link

This package isn't really maintained anymore. However, it might be connected to your #238 issue.

@MonsieurBibo MonsieurBibo mentioned this issue Jun 5, 2021
@schimini
Copy link

@wemersonrv have you tried deleting the session.json file and restart?

@wemersonrv
Copy link
Author

@wemersonrv have you tried deleting the session.json file and restart?

Hello. Nope. I was just testing this package and as was told it maintained anymore, i stop using it!

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

3 participants