Instagram OAuth返回“找不到匹配的代码";在随机时间 [英] Instagram OAuth Returning "No matching code found" At Random Times

查看:108
本文介绍了Instagram OAuth返回“找不到匹配的代码";在随机时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当尝试在服务器端检索Instagram访问令牌时,我们似乎遇到了一个非常奇怪的问题.

We seem to be experiencing a really strange problem when attempting to retrieve Instagram access tokens on the server side.

我们在随机时间看到找不到匹配的代码"错误,但是当它确实发生时,它似乎被聚集了,因为这些错误不会全天散布,而只会出现在随机的15分钟之内大约在深夜左右,而在这段时间内,这种情况只发生在极少数的用户中.

We're seeing "No matching code found" errors at random times, but when it does happen it seem to be clumped, as in these errors aren't spread throughout the day but only seem to be within a random 15 minute or so period late in the night, and it's only happening for a very small percentage of users during that time as we can tell.

我们已经研究了其他可能性,访问令牌请求IP似乎是一种可能性,但是在所有这些用户中,在未找到这些未找到匹配代码"的时间段内返回了400个错误的情况下,此问题在所有用户中并不一致访问令牌请求.

We've looked at other possibilities, access token request IP seemed to be one possibility, however this issue is not consistent across all users in the time frame of which these "No matching code found" 400 errors are being returned during the access token request.

有人曾经经历过吗?有任何想法吗?还需要注意的是,我们的应用程序看到在任何给定时间每天都有成千上万的用户登录,因此定时发生的随机性没有多大意义.

Has anyone experienced this before? Any ideas? Also to note, our application sees thousands of users logging in per day at any given time, so the randomness of the timing occurrence doesn't make much sense.

推荐答案

用户似乎获得了多个code,您看到了first code,但需要second.如果遇到错误,请尝试使用relogin用户.用户将不会看到带有确认按钮的instagram页面,只是重定向.

It looks like users get more than one code, and you see first code, but need second. Try relogin users, if you gets error. User will not see instagram page with confirm button, just redirections.

可能的错误算法:

1. User click auth link.
2. Get first code.
3. User click auth link (twice, redirection problem, public auth system, etc.)
4. Get another code (even on the same client_id, redirect_uri).
5. You get first code.
6. But first code already doesn't exists.

这篇关于Instagram OAuth返回“找不到匹配的代码";在随机时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆