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

The class DiscoverFeedResponseUser is not reflecting the object that is received #1778

Open
5 of 6 tasks
jol-cochet-pro opened this issue May 1, 2024 · 0 comments
Open
5 of 6 tasks
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin

Comments

@jol-cochet-pro
Copy link

jol-cochet-pro commented May 1, 2024

Bug Report

Read the Notes and fill out the form.

Form

Put an [x] if you meet the condition, else leave [ ].

Requirements

Platform

  • I'm using Node.js version 21.7.3
  • I'm using electron

Description

There seems to be an error with the DiscoverFeedResponseUser class. When I want to get the user from an item of the ig.feed.discover().items() there is a difference between what the autocompletion tells me and the real object when I console.log it. This problem force me to use the (item as any).user to get the user from the item.

Code

// I'm using a service injection here but 
//  `this.instagramService` it can be referred as `ig`
async initializeSniffer() {
  const discoverPage = this.instagramService.feed.discover();
  const items = await discoverPage.items();
  (items[0] as any).user; // <-- This is the problem
}

Error and Output

This is what I got when I print items[0] in the console.
result

@jol-cochet-pro jol-cochet-pro added bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug unconfirmed This issue hasn't been read/confirmed/accepted by an admin
Projects
None yet
Development

No branches or pull requests

1 participant