Skip to content
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

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

Open
BoQsc opened this issue Apr 29, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@BoQsc
Copy link

BoQsc commented 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

@BoQsc BoQsc added the bug Something isn't working label Apr 29, 2023
@BoQsc BoQsc changed the title bug: 404 error when somoeone joins server: http Request of members/00000000000000000000000000 bug: 404 error when someone joins server: http Request of members/00000000000000000000000000 Apr 29, 2023
@BoQsc BoQsc changed the title bug: 404 error when someone joins server: http Request of members/00000000000000000000000000 bug: CommonJS Bot: 404 error when someone joins server: http Request of members/00000000000000000000000000 Apr 29, 2023
@BoQsc BoQsc changed the title bug: CommonJS Bot: 404 error when someone joins server: http Request of members/00000000000000000000000000 bug: Simple CommonJS Bot: revolt-api: 404 error when someone joins server: http Request of members/00000000000000000000000000 Apr 29, 2023
@BoQsc BoQsc changed the title bug: Simple CommonJS Bot: revolt-api: 404 error when someone joins server: http Request of members/00000000000000000000000000 bug: A simple CommonJS Bot, but: revolt-api: 404 error when someone joins server: http Request of members/00000000000000000000000000 Apr 29, 2023
@BoQsc BoQsc changed the title bug: A simple CommonJS Bot, but: revolt-api: 404 error when someone joins server: http Request of members/00000000000000000000000000 bug: A simple CommonJS Bot, but: revolt-api/node_modules/axios: 404 error when someone joins server: http Request of members/00000000000000000000000000 Apr 29, 2023
@Rexogamer
Copy link
Member

Are you using v6 or v7?

@BoQsc
Copy link
Author

BoQsc commented 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.

@Xynnix
Copy link

Xynnix commented 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 up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🧑‍💻 Needs Reproduction
Development

No branches or pull requests

3 participants