Repository navigation
Troubleshooting
Roi Horowitz edited this page Dec 2, 2026
·
4 revisions
- Check the Bot URL and that the bot is running: open
<bot url>/api/healthin the same browser. -
https Foundry + http bot: browsers block it. Serve the bot over https, or run it on
http://localhoston the GM's machine. - Chrome "local network access" prompt: allow it, when Foundry is on a public address and the bot is on localhost.
- Hosted Foundry (The Forge…): the bot must have a public https address. See Hosting.
-
CORS:
FOUNDRY_ORIGINin the bot's.envmust exactly match the address in the browser's address bar, includinghttpsand the port. List every address people use, comma-separated. -
Bot token: the module's Bot token must equal the bot's
FOUNDRY_TOKEN.
- The GM needs to open the world once with the module enabled, so it syncs. Use Sync now in the setup window to force it.
- "You're not linked to a character": add the player's Discord ID in the setup window (
/linkshows it). - "This channel isn't linked to a campaign": add the channel ID (shown in the message) to the world's channels.
Restart Discord or press Ctrl+R.
The bot is offline, or restarting. Check its log.
The bot lacks permissions in that channel or thread. Give it View Channel, Send Messages, Send Messages in Threads and Read Message History, or re-invite it with the URL in Bot Setup. For a private thread, add the bot to the thread.
- These apply only while a GM has the world open. The GM DM shows ⏳ until then.
⚠️ in the DM shows the reason, e.g. "no active encounter", "target token is no longer on its scene", "character is not at 0 HP".- After updating the module, reload Foundry (F5). An old tab keeps running the old code.
Targets come from the active scene. Activate the scene (or move a token) so it re-syncs.
Cards show how old the stats are. Changes sync automatically while a GM is online; Sync now forces it.
- "refuses to start inside a module folder": move it out of Foundry's Data folder. See Security.
-
EADDRINUSE: another copy is already running onPORT. Stop it or change the port. - Commands missing in Discord: run
npm run register.
Open an issue. Include the bot log, the browser console (F12) and your system and version.
Getting started
- Installation
- Bot Setup
- Hosting (Forge, cloud, VPS)
- Foundry Setup
Using it
Systems
Reference