API标签端点错误-min_id不是此标签的有效游标 [英] API Tags endpoint error - min_id is not a valid cursor for this tag
问题描述
自几天前以来,我们已经收到来自Instagram API的错误响应-它抱怨访问标签端点时我们使用了无效的游标'min_id'.
Since a few days ago we've been getting an error response from Instagram API - it complains that we are using an invalid cursor 'min_id' when accessing the Tags endpoint.
问题是我们不使用'min_id'.我们使用'min_tag_id',根据文档(已弃用&
Thing is we don't use 'min_id'. We use 'min_tag_id', which according to the documentation (deprecated & current) is a valid cursor for this endpoint.
做一些研究,我发现一些人在本周前后也遇到了意想不到的错误(尽管有所不同).
Doing some research I see that some people have been getting unexpected errors too (though different ones) around this week.
示例API请求(插入访问令牌并粘贴在浏览器中以自行查看):
Example API request (plug an access token and paste in a browser to see for yourselves):
https://api.instagram.com/v1/tags/nofilter/media/recent?access_token=<ACCESS_TOKEN>&min_tag_id=AQCvuinNA31T_hoSa-RaCsQigBknfYaBv2_VcCn1kp4MX5whyr7v7AfpOzio8E4lcQ9TZIKZbN_ZAqEmuzmslq8qMmFTQF-1ocNntqDIjlN4va4GxocNeBxmo29nXEOjKIRVvce5PuvoXk3MY9nuNd6hbxFj7TW_FEWTWpdx9FNzEQ
响应:
{"meta":{"error_type":"APIInvalidParametersError","code":400,"error_message":"min_id is not a valid cursor for this tag."}}
有什么主意吗?
推荐答案
好的,这就是我的解决方法-等待几天后,发现什么都没发生,然后我删除了存储中的所有min_tag_id值.我还更改了应用程序逻辑来处理这种情况(在我的情况下,当没有min_tag_id时,我会加载一些历史帖子,对此修复程序我将其注释掉了.)
OK, so this is how I solved it - after waiting for a few days and seeing that nothing happens then I have deleted all min_tag_id values that I have in store. I also altered my app logic to deal with the situation (in my case when there's no min_tag_id then I load some historical posts, which I commented out for this fix).
我运行了导入过程,并重新填充了min_tag_id字段.新值没有问题.他们解决了这个问题,或者取消标记的事情又没有发生在我身上.
I ran the import process and this repopulated the min_tag_id field. The new values have no problems. Either they fixed the issue or the un-tagging thing didn't happen to me again yet.
到目前为止,一切都很好.将发布更新.
So far so good. Will post updates if any.
这篇关于API标签端点错误-min_id不是此标签的有效游标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!