Failed to Authenticate error due to discord_token endpoint 404 · Issue #1 · colyseus/discord-activity · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just following the directions in the README is not working. I'm getting stuck with a "Failed to authenticate" error when running within a Discord Activity. Things work fine when opening the client in a browser, because everything's mocked I assume.
Looking at the devtools, it looks like the request to /.proxy/discord_token is 404'ing, leading to the auth failure.
I think the Readme is a bit misleading, particularly this part:
During development, there's no need to expose the server to the public internet - only the client. Our Vite development server proxies the /api requests to our local server.
So I wasn't putting the server onto cloudflare.
You do say to have /colyseus pointing to cloudflare in this section, I just got confused between that and the "Testing your local Discord Activity" section.
Might be worth clarification, though this was mostly me just being a
8BE3
bad reader.
Just following the directions in the README is not working. I'm getting stuck with a "Failed to authenticate" error when running within a Discord Activity. Things work fine when opening the client in a browser, because everything's mocked I assume.
Looking at the devtools, it looks like the request to
/.proxy/discord_token
is 404'ing, leading to the auth failure.Exact steps I took to reproduce:
git clone https://github.com/colyseus/discord-embedded-app-sdk
client/.env
have correctVITE_DISCORD_CLIENT_ID
server/.env
have correctDISCORD_CLIENT_ID
andDISCORD_CLIENT_SECRET
cd server && npm install && npm start
cd client && npm install && npm start
npx cloudflared tunnel --url http://localhost:5173
url from above
, and url mapping for/
->url from above
No other changes.
This seems like the absolute barebones of this repo, so I feel like I'm missing something.
I also tried putting the server onto its own cloudflare rev proxy, and updating vite.config.js with that url, but that didn't work either.
The text was updated successfully, but these errors were encountered: