Luiz
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
Final update
There's no real support for doing this, currently, I'm getting it to work by using a third party tool to redirect node.exe traffic through my proxy (I'm using 'ProxyCap' but there are other tools available for windows)
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
This is working fine http wise, the problem is now the websocket connections:
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
www.discord.com returns status code 301 because maxRedirections is defaulted to 0 on the new agent's options, setting it to a higher value will make the request return a 200 status code
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
Update:
Looks like the intended way to do this is to setup a proxy agent and set it on the discord's rest->agent options, which uses undici agents
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
Attempting to run this
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
This was needed for me to be able to install packages via npm, though I already have and had it configured properly for a while, being able to npm install and all but no dice in connecting my bot
22 replies
DIAdiscord.js - Imagine an app
•Created by Ypsilon on 10/7/2023 in #djs-questions
Embed Thumbnail not showing
9 replies
DIAdiscord.js - Imagine an app
•Created by Ypsilon on 10/7/2023 in #djs-questions
Embed Thumbnail not showing
9 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
I'll be able to test it further monday
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
It was set everywhere I could tell on windows, on the new control panel, the old win7 control panel, even set with netsh winhttp set proxy but still no dice
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
(though www.discord.com works on the browser)
22 replies
DIAdiscord.js - Imagine an app
•Created by Luiz on 10/6/2023 in #djs-questions
DiscordJS behind a proxy
I'll try figuring this out and will report back here, thanks
22 replies