You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After a bit of digging the problem seems to be ClearClientCache field in the search.go file is declared as a bool, but the JSON response from Instagram's API contains an empty array for this field. To resolve this, I modified the struct declaration as follows:
// Original line commented out for reference// ClearClientCache bool `json:"clear_client_cache"`ClearClientCache []interface{} `json:"clear_client_cache"`
This change seems to fix the unmarshaling issue. However, I’m unsure if this modification might cause problems elsewhere in the future. If anyone is more familiar with the goinsta library or has insights into why this error occurred, your input would be greatly appreciated.
When'm using this code snippet for visiting the user profile i give this error:
profile, err := insta.VisitProfile(acc) if err != nil { log.Fatal(err) }
help me please
The text was updated successfully, but these errors were encountered: