Closed LackyPal closed 3 years ago
is it throwing any errors? could you enable extended logging and see what it logs there? could be that just their API is down, we had such occurrences in the past with other lists.
Okk, let me enable extended logging and check
I reported them the bug, they said they fixed it. So can you check the API now
@L0SER8228 Does it work for you now? If they changed their API to acommodate the auth header, blapi wouldnt need any changes, right?
@MattIPv4 heads up that apparently this API was not correctly listed, as their endpoints didnt work with BotBlocks auth headers. Fixed now (on their side), but still something to potentially look out for when new lists are added from now on
I restart my bot more than 1 hour ago, and set the blapi to post stats every 30 minutes. But they stats didn't appear on infinitybotlist.com yet
is it throwing any errors? could you enable extended logging and see what it logs there? could be that just their API is down, we had such occurrences in the past with other lists.
try this again? what did it even log the first time? if you don't tell me, I can't really know if there is any issue with BLAPI
I didn't log anything yet after restart, I've to wait sometimes to tell you the log
2021-05-24T12:48:54.435701+00:00 app[worker.1]: [INFO][BLAPI: STATUSCODE: 200][24-05-2021, 12:48:54 pm]: undefined 2021-05-24T12:48:54.435760+00:00 app[worker.1]: [INFO][BLAPI: HEADERS: [OBJECT OBJECT]][24-05-2021, 12:48:54 pm]: undefined 2021-05-24T12:48:54.435823+00:00 app[worker.1]: [INFO][BLAPI: DATA: {}][24-05-2021, 12:48:54 pm]: undefined
2021-05-24T12:48:54.435701+00:00 app[worker.1]: [INFO][BLAPI: STATUSCODE: 200][24-05-2021, 12:48:54 pm]: undefined 2021-05-24T12:48:54.435760+00:00 app[worker.1]: [INFO][BLAPI: HEADERS: [OBJECT OBJECT]][24-05-2021, 12:48:54 pm]: undefined 2021-05-24T12:48:54.435823+00:00 app[worker.1]: [INFO][BLAPI: DATA: {}][24-05-2021, 12:48:54 pm]: undefined
to me this looks like blapi only tried posting to top.gg, which was successful with code 200 are there any other logs concerning posting stats?
Noo i didn't saw previous also It shows only top.gg success log, though it post stats to almost every sites
Wonderbotlist is also not working
what is your config meaning what timeout are you using (30min, as you mentioned earlier?) and are you using BotBlock, or turned it off?
edit: maybe the extended logging doesn't correctly show the response BotBlock gives when it posts using that single endpoint. If so we should probably add that as an extra case that is logged differently, as it returns the response of all lists that were posted to
I'm always using the api , the timeout is 30 minutes
i will see if the logging needs changes and come back to you - even if there is no bug with posting, we will at least find that out when the logging gives us all the info we need.
edit: just to make sure, you are using which version of BLAPI?
"blapi": "^2.1.0",
I just looked at the logging code and it should post top.gg extra (because they blacklisted botblock), just like it did for you.
but it should also definitely log that it posted to https://botblock.org/api/count
and the response it got there.
It definitely did not do that for you?
if so, could you share you apiKeys object? (pls censor the keys beforehand tho)
Top.gg didn’t blacklist botblock as i can post stats fine. They just need a auth header for everything including get bot
Top.gg didn’t blacklist botblock as i can post stats fine. They just need a auth header for everything including get bot
do you post directly to the botblock API? or are you using BLAPI? if the latter, then yes that's intended behavior, because BLAPI always takes top.gg and manually sends it there, even when the use of botblock is activated
We directly use aiohttp to post to botblock
We directly use aiohttp to post to botblock
good to know! I'll investigate this further and streamline the BLAPI code if this is really the case, as for years we had to handle top.gg extra.
nonetheless, this doesn't solve the issue of the logging not including anything about posting to the botblock API tbh I cant really see how it would just not log anything for you @L0SER8228
@L0SER8228 you're defintely not getting any other logs? could you please copy all logs that have anything to do with BLAPI? could you try posting directly to botblock and see what that call returns? (https://botblock.org/api/docs#count)
No i didn't post directly, I'm using blapi only and write the code which is on the readme.
Some others issue, (different topic) Some sites is no longer available or not responding ( arcane-center.xyz, botrix.cc, nooder.co
No i didn't post directly, I'm using blapi only and write the code which is on the readme.
i didn't ask if you did, I asked you to do so
Some others issue, (different topic) Some sites is no longer available or not responding ( arcane-center.xyz, botrix.cc, nooder.co
that doesn't concern this lib specifically though, if they are really down, you could/should mark that on botblock.org so that they are marked unavailable there
@L0SER8228 but the most important thing rn is that you just post ALL logs here. that might make it very obvious what is going wrong, and we don't even need to manually test botblock etc.
Wonderbotlist is also not working
So what to do now
So what to do now
Please post directly to the botblock API and post all logs including non blapi ones here please
the logs are more important, you can try posting directly to botblock API afterwards, but I still think the logs will already help enough
2021-05-24T14:48:52.843538+00:00 app[worker.1]: 498, 2021-05-24T14:48:52.843538+00:00 app[worker.1]: "{\"MESSAGE\":\"LA CLÉ API EST INVALIDE\",\"STATUS\":498}", 2021-05-24T14:48:52.843539+00:00 app[worker.1]: "{\"SERVEURS\":236}" 2021-05-24T14:48:52.843539+00:00 app[worker.1]: ] 2021-05-24T14:48:52.843539+00:00 app[worker.1]: } 2021-05-24T14:48:52.843539+00:00 app[worker.1]: }][24-05-2021, 14:48:52 pm]: undefined 2021-05-24T14:48:53.489482+00:00 app[worker.1]: [INFO][BLAPI: POSTED TO HTTPS://TOP.GG/API/BOTS/734590862620753970/STATS][24-05-2021, 14:48:53 pm]: undefined 2021-05-24T14:48:53.489529+00:00 app[worker.1]: [INFO][BLAPI: STATUSCODE: 200][24-05-2021, 14:48:53 pm]: undefined 2021-05-24T14:48:53.489586+00:00 app[worker.1]: [INFO][BLAPI: HEADERS: [OBJECT OBJECT]][24-05-2021, 14:48:53 pm]: undefined 2021-05-24T14:48:53.489646+00:00 app[worker.1]: [INFO][BLAPI: DATA: {}][24-05-2021, 14:48:53 pm]: undefined
Only this much for now
Are you sure that’s the full logs AND stats to other lists are being sent
Only this much for now
2021-05-24T14:48:52.843538+00:00 app[worker.1]: 498,
2021-05-24T14:48:52.843538+00:00 app[worker.1]: "{\"MESSAGE\":\"LA CLÉ API EST INVALIDE\",\"STATUS\":498}",
2021-05-24T14:48:52.843539+00:00 app[worker.1]: "{\"SERVEURS\":236}"
2021-05-24T14:48:52.843539+00:00 app[worker.1]: ]
2021-05-24T14:48:52.843539+00:00 app[worker.1]: }
2021-05-24T14:48:52.843539+00:00 app[worker.1]: }][24-05-2021, 14:48:52 pm]: undefined
2021-05-24T14:48:53.489482+00:00 app[worker.1]: [INFO][BLAPI: POSTED TO HTTPS://TOP.GG/API/BOTS/734590862620753970/STATS][24-05-2021, 14:48:53 pm]: undefined
2021-05-24T14:48:53.489529+00:00 app[worker.1]: [INFO][BLAPI: STATUSCODE: 200][24-05-2021, 14:48:53 pm]: undefined
2021-05-24T14:48:53.489586+00:00 app[worker.1]: [INFO][BLAPI: HEADERS: [OBJECT OBJECT]][24-05-2021, 14:48:53 pm]: undefined
2021-05-24T14:48:53.489646+00:00 app[worker.1]: [INFO][BLAPI: DATA: {}][24-05-2021, 14:48:53 pm]: undefined
2021-05-24T15:16:30.230608+00:00 app[worker.1]: DiscordAPIError: Unknown Message
2021-05-24T15:16:30.230616+00:00 app[worker.1]: at RequestHandler.execute (/app/node_modules/discord.js/src/rest/RequestHandler.js:154:13)
2021-05-24T15:16:30.230617+00:00 app[worker.1]: at runMicrotasks (
some lists are giving you a 498, which means your token is invalid. also, infinity e.g. tells you you don't even have the bot listed (404) if you had shown this information from the start it would have been very clear what is going wrong.
this is most definitely not an issue with BLAPI, but your tokens
@MattIPv4 heads up that apparently this API was not correctly listed, as their endpoints didnt work with BotBlocks auth headers. Fixed now (on their side), but still something to potentially look out for when new lists are added from now on
LULW -- case sensitive header detection is definitely a new one for me.
@MattIPv4 heads up that apparently this API was not correctly listed, as their endpoints didnt work with BotBlocks auth headers. Fixed now (on their side), but still something to potentially look out for when new lists are added from now on
LULW -- case sensitive header detection is definitely a new one for me.
Aren’t headers supposed to be case insensitive lol
I can ensure my bot has been approved, I'll check the tokens,. If the problem still exists, I'll tell you
yeah, taking a closer look, the 404 seems to also say invalid token (which is not what that error code stands for.). closing this, if the issue persists we can reopen
Header and Case Sensitivity issues have been fixed for Infinity sorry about that 😳😬
Edit: I’ll look into why it’s showing 404 for bad Auth token that definitely should be a 400 or 403
Still the same problem, same Error for Infinitybotlist and wonderbotlist
Have you tried directly using their API and making sure it isn’t a botblock problem
@cheesycod Well on our end the uhh trigger for that error is !auth which indicates there was no auto token provided or something about the actual header request is wrong.
Posting stats via our NPM Module or Node-Fetch or anything of the sort should be successful as it works for me and all others who use it provided of course you read, follow and understand our docs/guides.
I personally have never attempted to use the Infinity API via this module but I can definitely do that and see if I can recreate 🤔
@L0SER8228 Since it obviously updates some lists, the part that this library does cannot be the issue. Either BotBlock has an outdated documentation of those APIs and/or doesnt post in the correct format, or you are still doing something wrong with the tokens.
One thing you could try is turn off the use of BotBlock in BLAPI. It will then post to all lists individually, which might help you find where the problem stems from.
I checked everything correctly, for others sites it's working fine. But for infinitybotlist.com, it's not posting stats