Skip to content

JSON unmarshal error on login step #84

@bu-but

Description

@bu-but

On a specific account that I'm trying to login, i'm getting this error:

panic: Failed to fetch initial messages inbox snapshot: json: cannot unmarshal object into Go struct field Item.inbox.threads.items.media_share.carousel_media.overlay_subtitle of type string

I've tested the same setup with other accounts and nothing happened. Maybe it has something to do with some new structure on the Meta API JSON return?

code:

func main() {
	insta := goinsta.New("username", "password")

	if err := insta.Login(); err != nil {
		panic(err)
	}

	defer insta.Logout()
	fmt.Println("Logged in successfully")
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions