2025-06-17 03:59:35
|
<wm-bb>
|
<nokibsarkar> My OAuth 2 Library is trying to refresh a Token but failing. After changing the source code of the library, u know, for debugging, I got the following requests that are being sent from my server. Any idea why failing?
|
2025-06-17 03:59:36
|
<wm-bb>
|
<nokibsarkar> URL
|
2025-06-17 03:59:38
|
<wm-bb>
|
<nokibsarkar> https://meta.wikimedia.org/w/rest.php/oauth2/access_token
|
2025-06-17 03:59:39
|
<wm-bb>
|
<nokibsarkar> Request Body (Parameters)
|
2025-06-17 03:59:41
|
<wm-bb>
|
<nokibsarkar> client_id=effb2b8d8a7a4d88ac2b5220037f613a&client_secret=[YOUR_CLIENT_SECRET_HERE]&grant_type=refresh_token&refresh_token=[YOUR_REFRESH_TOKEN_HERE]
|
2025-06-17 03:59:42
|
<wm-bb>
|
<nokibsarkar> Response
|
2025-06-17 03:59:44
|
<wm-bb>
|
<nokibsarkar> 2025/06/17 09:41:08 Token refresh failed: oauth2: "invalid_request" "The refresh token is invalid."
|
2025-06-17 04:01:49
|
<wm-bb>
|
<nokibsarkar> Ok. After lot of hole punching: I got `{"error":"invalid_request","error_description":"The refresh token is invalid.","hint":"Token has been revoked","message":"The refresh token is invalid."}`. But I never revoked the refresh token.
|
2025-06-17 08:56:20
|
<tgr>
|
nokibsarkar: refresh tokens are single use. When you first use one to refresh the access token, both the access token and the refresh token get revoked, and you get a new access token and new refresh token.
|
2025-06-17 23:54:04
|
<wm-bb>
|
<sohom_datta> Can somebody with admin access delete the file` /data/project/yapperbot/frs/CategoryGood-article-nominees.frsrunfil`e ?
|
2025-06-17 23:54:32
|
<wm-bb>
|
<sohom_datta> Context https://en.wikipedia.org/wiki/User_talk:Yapperbot#Yapperbot:_FRS_failure_%E2%80%93_time_too_short?
|
2025-06-17 23:58:11
|
<wm-bot>
|
!log lucaswerkmeister@tools-bastion-13 tools.yapperbot unlink frs/CategoryGood-article-nominees.frsrunfile # per Sohom’s request, see https://w.wiki/EWHw and https://wm-bot.wmcloud.org/browser/index.php?start=06%2F17%2F2025&end=06%2F17%2F2025&display=%23wikimedia-cloud
|
2025-06-17 23:58:12
|
<stashbot>
|
Logged the message at https://wikitech.wikimedia.org/wiki/Nova_Resource:Tools.yapperbot/SAL
|