-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OAuth: server response missing access token #31
Comments
@vartanbeno has this project been abandoned? I am also getting the <p>reddit's awesome and all, but you may have a bit of a
problem. we've seen far too many requests come from your ip address
recently.</p> error when running the examples, no matter which machine I run it from. |
Also getting OAuth error and this issue is from April. Code is long abandoned. |
I just got to this page. I have been using graw and its subpackage, graw/reddit (https://github.com/turnage/graw & https://github.com/turnage/graw/reddit). The repo seems to be maintained actively and by many contributors. I noticed a couple major differences between this repo and the aforementioned ones:
To all above, I have gotten the same error only when exceeding Reddit's API limits. I am wondering if this package puts the onus on the user to time requests appropriately. Hope this helps. And, if I have overlooked something in this repo's docs regarding the above assertions, please let me know. Additionally, I only came to this repo because I am having trouble setting up event streams with graw and graw/reddit. Has anyone else had this issue? |
Hi, got the same issue so I dug into this a bit. You can see in reddit-oauth.go that it uses password auth, so I tested grant_type=password manually w/curl and got the following error: {"error_description": "Only script apps may use password auth", "error": "unauthorized_client"} I created a new app of type 'script' and can successfully authenticate and use go-reddit now. hope this helps. |
Good find! Thank you for posting this. Also glad it wasn't just me.
…On Sun, Jan 22, 2023 at 08:53 jgibat ***@***.***> wrote:
Hi, got the same issue so I dug into this a bit. You can see in
reddit-oauth.go that it uses password auth, so I tested grant_type=password
manually w/curl and got the following error:
{"error_description": "Only script apps may use password auth", "error":
"unauthorized_client"}
I created a new app of type 'script' and can successfully authenticate and
use go-reddit now. hope this helps.
—
Reply to this email directly, view it on GitHub
<#31 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AUWVMO6NDQQO7TRNEHXVM5DWTVJZFANCNFSM5QVOHPYA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
to anyone here I think most likely you guys are using a webapp or mobile app for the reddit api.. request a script app and it helps ease the oauth problem without having to go pull down the git and fix the reddit-auth file |
Unluckily, #18 did not help me. 2FA is disabled, I triple checked my username/password/ID/secret but I still get the error
click me to see the request that is sent
I noticed that the
User
field isnil
. Is that the intended behavior? I'm initializing the client like this:I tried to track down where this error comes from and the call stack seems to be:
but I have no clue where inside
client#do
the error happens (set breakpoints at everyreturn
but they don't trigger). Thus, I am not quite sure if this is caused by misuse on my end, an error ingo-reddit
or (rather unlikely) inclient.go
.The text was updated successfully, but these errors were encountered: