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

AbortError: Request aborted on login #9666

Closed
Tracked by #9663
7xa5h opened this issue Jun 25, 2023 · 8 comments
Closed
Tracked by #9663

AbortError: Request aborted on login #9666

7xa5h opened this issue Jun 25, 2023 · 8 comments

Comments

@7xa5h
Copy link

7xa5h commented Jun 25, 2023

Which package is this bug report for?

discord.js

Issue description

My code is pretty minimal, it's just a starting point for me and those are all the files that exist, I've been getting the same error for about 3 days, I've restarted my WiFi, disabled my firewall, restarted my computer, and even updated Deno.
I do know that Discord.js "doesn't" support Deno but a couple of days ago when I was chatting in the official DJS Discord server (which I'm currently banned from) a contributor (I don't exactly remember their name) told me that the latest version of both Deno and DJS should work together.
The issue is pretty annoying as I've tried everything I could but it still wouldn't work, and yes I did increase the timeout limit - thing - up to 5 minutes but I still get the same error, thanks.

Code sample

// main.ts
import { Client, GatewayIntentBits, Partials } from "discord.js";
import config from "./config.json" assert { type: "json" };

const client = new Client({
  intents: [
    GatewayIntentBits.Guilds,
    GatewayIntentBits.GuildMembers,
    GatewayIntentBits.GuildMessages,
  ],
  partials: [
    Partials.Channel,
    Partials.GuildMember,
    Partials.Reaction,
    Partials.ThreadMember,
    Partials.User,
  ],
});

client.config = config;

client
  .login(config.token)
  .then(() => console.log(`🟩 [LOGIN] Client logged in.`))
  .catch((err) => console.error(`🟥 [LOGIN] ${err}`));


// deno.jsonc
{
  "imports": {
    "discord.js": "./deps.ts"
  }
}


// deps.ts
export * from "npm:discord.js"

Versions

  • Discord.js v14.11.0
  • Deno v1.34.3

Issue priority

High (immediate attention needed)

Which partials do you have configured?

User, Channel, GuildMember, Reaction, ThreadMember

Which gateway intents are you subscribing to?

Guilds, GuildMembers, GuildMessages

I have tested this issue on a development release

No response

@Jiralite
Copy link
Member

A quick search yields:

If there are still problems with Undici (discord.js uses this), then it's not going to work.

@Jiralite Jiralite mentioned this issue Jun 25, 2023
@7xa5h
Copy link
Author

7xa5h commented Jun 25, 2023

A quick search yields:

If there are still problems with Undici (discord.js uses this), then it's not going to work.

hm what do i do now? all 3 issues didnt have any fix

@7xa5h
Copy link
Author

7xa5h commented Jun 25, 2023

on a separate note, i just realised that ws: { properties: { browser: "test" } } } doesnt exist in deno?

@Jiralite
Copy link
Member

hm what do i do now? all 3 issues didnt have any fix

You can help contribute to Deno with a fix! Otherwise, nothing.

on a separate note, i just realised that ws: { properties: { browser: "test" } } } doesnt exist in deno?

This is not specific to Deno. As documented, this is the library name and as such, should not be modifiable by the end user.

@7xa5h
Copy link
Author

7xa5h commented Jun 25, 2023

on a separate note, i just realised that ws: { properties: { browser: "test" } } } doesnt exist in deno?

This is not specific to Deno. As documented, this is the library name and as such, should not be modifiable by the end user.

that makes no sense, in the documentation it says that they exist, but i cant find "properties" anymore

@Jiralite
Copy link
Member

in the documentation it says that they exist

They do not.

@7xa5h
Copy link
Author

7xa5h commented Jun 25, 2023

in the documentation it says that they exist

They do not.

hm then how do i emulate my discord bot to think its using a phone like how bleed does

@Syjalo
Copy link
Contributor

Syjalo commented Jun 25, 2023

You don't. This should be considered a bug and you shouldn't use it.

@Jiralite Jiralite changed the title 🟥 [LOGIN] AbortError: Request aborted AbortError: Request aborted on login Jun 25, 2023
@Jiralite Jiralite closed this as not planned Won't fix, can't repro, duplicate, stale Jun 25, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants