sim icon indicating copy to clipboard operation
sim copied to clipboard

[BUG] Reddit API gives 403 error in local, while generating access token from refresh token.

Open shubh-deepdrishti opened this issue 3 months ago • 4 comments

Describe the bug Reddit API gives 403 error with description saying "you've been blocked by network security..." while generating access token from refresh token.

To Reproduce Steps to reproduce the behavior:

  1. Run the Reddit workflow in local docker machine, after a day.
  2. See error

Expected behavior

Console logs:

Failed to obtain credential for tool reddit_get_posts: Failed to fetch access token: 401 {"error":"Failed to refresh access token"}

Docker Logs:

[2025-11-06T06:00:01.470Z] [ERROR] [OAuth] Token refresh failed: {"status":403,"error":"...."} [2025-11-06T06:00:01.473Z] [ERROR] [OAuth] Error refreshing token: {"error":{}}

[2025-11-06T06:00:01.473Z] [ERROR] [OAuthUtilsAPI] [e6825f39] Failed to refresh token for credential

[2025-11-06T06:00:01.476Z] [ERROR] [OAuthUtilsAPI] [e6825f39] Refresh failed and no valid token found in DB {"message":"Failed to refresh token"}

[2025-11-06T06:00:01.477Z] [ERROR] [OAuthTokenAPI] [e6825f39] Failed to refresh access token: {"message":"Failed to refresh token"}

Probable Solution For some users passing "User-Agent" in header worked for them.

References:

  • https://github.com/ReVanced/revanced-patches/issues/4549
  • https://stackoverflow.com/a/68598054

I want to try this but my Mac Mini is not capable to run and build 'docker-compose.local.yml'. It always shows error saying "Process killed because of low memory or some similiar error"

shubh-deepdrishti avatar Nov 06 '25 06:11 shubh-deepdrishti

Hi @shubh-deepdrishti can i pick this up?

rohityadav2604 avatar Nov 06 '25 19:11 rohityadav2604

@rohityadav2604 Sure!! Just test thoroughly before committing.

shubh-deepdrishti avatar Nov 07 '25 07:11 shubh-deepdrishti

Hi @shubh-deepdrishti is there any way to connect with you regarding this issue?

rohityadav2604 avatar Nov 07 '25 12:11 rohityadav2604

Hi @sundaram is this issue still open for contribution?

rohityadav2604 avatar Nov 08 '25 20:11 rohityadav2604