Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

json: cannot unmarshal number into Go struct field Users.next_max_id of type string #325

Open
akselarzuman opened this issue Oct 25, 2020 · 2 comments
Labels

Comments

@akselarzuman
Copy link

akselarzuman commented Oct 25, 2020

The code located in here is causing the below error while getting the users followers and following list by using the Next() method.

json: cannot unmarshal number into Go struct field Users.next_max_id of type string

Please see a part of the followers response below:

"big_list": false, "next_max_id": null, "page_size": 200, "status": "ok"

and a part of the following response below:

"big_list": true, "next_max_id": 50, "page_size": 200, "status": "ok"

@issue-label-bot issue-label-bot bot added the bug label Oct 25, 2020
@issue-label-bot
Copy link

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.97. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

@akselarzuman
Copy link
Author

@ahmdrz Please see my solution in #326

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant