bug: A simple CommonJS Bot, but: revolt-api/node_modules/axios: 404 error when someone joins server: http Request of members/00000000000000000000000000 #26

Open
opened 2026-02-16 12:26:49 -05:00 by yindo · 3 comments
Owner

Originally created by @BoQsc on GitHub (Apr 29, 2023).

What happened?

Plain simple bot gives an error of 404 when another bot joins the server.

OS: Linux/Debian

Setup: I'm using CommonJS, not TypeScript

Bot example:

const { Client } = require("revolt.js");

let client = new Client();


client.loginBot("YOUR_BOT_TOKEN");

Steps:

  1. Invite your bot example
  2. invite another bot for testing
  3. In the bot console you will see: 404 error with a Request of /members/00000000000000000000000000

Full error message: new 19.txt
image

Originally created by @BoQsc on GitHub (Apr 29, 2023). ### What happened? Plain simple bot gives an error of 404 when another bot joins the server. OS: Linux/Debian ### Setup: I'm using CommonJS, not TypeScript Bot example: ``` const { Client } = require("revolt.js"); let client = new Client(); client.loginBot("YOUR_BOT_TOKEN"); ``` Steps: 1. Invite your bot example 2. invite another bot for testing 3. **In the bot console you will see:** 404 error with a Request of `/members/00000000000000000000000000` Full error message: [new 19.txt](https://github.com/revoltchat/revolt.js/files/11359152/new.19.txt) ![image](https://user-images.githubusercontent.com/21064622/235302078-10386626-79ac-40f1-872e-723ea06b1cb2.png)
yindo added the bug label 2026-02-16 12:26:49 -05:00
Author
Owner

@Rexogamer commented on GitHub (Apr 29, 2023):

Are you using v6 or v7?

@Rexogamer commented on GitHub (Apr 29, 2023): Are you using v6 or v7?
Author
Owner

@BoQsc commented on GitHub (Apr 29, 2023):

@Rexogamer

Are you using v6 or v7?

root@vps:~/GuildBot2# node ./bot.js
NodeJS version: v18.16.0
revolt.js version: 7.0.0-beta.4
revolt.js documentation: https://revolt.js.org/
_______________________________
Welcome to a Basic Revolt Bot.
Client API URL: https://api.revolt.chat
Client API version: 0.5.19

I also encountered this issue a year or even a few years ago and was unable to resolve it, so I handled it by ignoring it in production bot. Now it's again a clean environment, but this 404 when someone joins the server still appears.

@BoQsc commented on GitHub (Apr 29, 2023): @Rexogamer > Are you using v6 or v7? ``` root@vps:~/GuildBot2# node ./bot.js NodeJS version: v18.16.0 revolt.js version: 7.0.0-beta.4 revolt.js documentation: https://revolt.js.org/ _______________________________ Welcome to a Basic Revolt Bot. Client API URL: https://api.revolt.chat Client API version: 0.5.19 ``` I also encountered this issue a year or even a few years ago and was unable to resolve it, so I handled it by ignoring it in production bot. Now it's again a clean environment, but this 404 when someone joins the server still appears.
Author
Owner

@Xynnix commented on GitHub (Oct 5, 2023):

I would say if you're using serverMemberJoin event the way i fixed this is just simply checking if there's a user.id / member.id, or if its a message causing this issue, you could try message.system check (i think) as well as message.author.id; this could be a temp fix.

if you aren't using an serverMemberJoin event, i would say try adding it with this method i stated?

this worked for me on 7.0.0-beta.9, but i am unsure if that's a me problem though then again.

scratch that, this doesn't help.

@Xynnix commented on GitHub (Oct 5, 2023): ~~I would say if you're using `serverMemberJoin` event the way i fixed this is just simply checking if there's a `user.id` / `member.id`, or if its a message causing this issue, you could try `message.system` check (i think) as well as `message.author.id`; this *could* be a temp fix.~~ ~~if you aren't using an `serverMemberJoin` event, i would say try adding it with this method i stated?~~ ~~this worked for me on ` 7.0.0-beta.9`, but i am unsure if that's a me problem though then again.~~ scratch that, this doesn't help.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: stoatchat/javascript-client-sdk#26