Top-gg-Community / python-sdk

A simple API wrapper for top.gg written in Python
https://docs.top.gg/docs/Libraries/python
MIT License
90 stars 54 forks source link

403: Forbidden errors #5

Closed Pyra1 closed 5 years ago

Pyra1 commented 6 years ago

I am having an issue. When I attempt to post server count from the example from https://discordbots.org/api/docs#pylib I get a 403: Forbidden error. The token is correct. I used the token from https://discordbots.org/api/docs#mybots and I even tested the token in a small discord.js environment and it worked. I am not sure what the problem is.

franc-ist commented 6 years ago

@Pyra1 can you please post your OS, dblpy version and the code you were using?

RaspberryKitty1 commented 6 years ago

I have the same issue and I'm using windows 10 the latest ver of dblpy and the example code from the api website edit: on launch it gave me error 30 min later it did post how many servers my bot is on

Pyra1 commented 6 years ago

I am using Windows 10 Insider Preview Build 17115/rs4_release.180302-1642, the latest dblpy from pip, and the code from the API example.

Yureien commented 5 years ago

I am still getting this error.

rumblefrog commented 5 years ago

Upon helping another user, it seems like his bot is posting to https://discordbots.org/api/bots/None/stats, perhaps more checks should be added to ensure the attribute exist?

rumblefrog commented 5 years ago

Update: looks like users were using the old example w/o the ready check, but I believe there should be an internal check as well.

DrLarck commented 5 years ago

Hoy ! I got the same error when i'm trying to use the method get_upvote_info(). Event with a good token, anything works.

ajgrinds commented 5 years ago

Did you read the last post? Although very incomplete, it atleast tries to describe the error.

Esmeray6 commented 5 years ago

Closing this for now. If error 403 keeps appearing, please let me know.