Encoding calling api format

雨燕双飞 提交于 2020-01-25 09:06:05

问题


I try to execute the following command to receive information:

library(stackr)
stack_users(1144035, "reputation-history", site = "stackoverflow", num_pages=1000000, pagesize=100, encoding = "UTF-8")

However I receive following error and the code stops.

No encoding supplied: defaulting to UTF-8. [1] "Error: Error: lexical error: invalid char in json text.\n Too\n (right here) ------^\n\n"

How can I fix it? I added the enconding in the command but again the error is the same.

来源:https://stackoverflow.com/questions/58936751/encoding-calling-api-format

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!