Skip to content

Troubleshooting

Roi Horowitz edited this page Dec 2, 2026 · 4 revisions

Troubleshooting

"Can't reach the bot" when syncing

  • Check the Bot URL and that the bot is running: open <bot url>/api/health in the same browser.
  • https Foundry + http bot: browsers block it. Serve the bot over https, or run it on http://localhost on 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_ORIGIN in the bot's .env must exactly match the address in the browser's address bar, including https and the port. List every address people use, comma-separated.
  • Bot token: the module's Bot token must equal the bot's FOUNDRY_TOKEN.

/roll shows no rolls, or "No character data yet"

  • 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 (/link shows it).
  • "This channel isn't linked to a campaign": add the channel ID (shown in the message) to the world's channels.

Discord still shows old options on a command

Restart Discord or press Ctrl+R.

The roll list is empty or "Loading options failed"

The bot is offline, or restarting. Check its log.

The bot can't post: "Missing Access" or "I can't post in that channel"

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.

Damage, conditions or initiative didn't apply

  • 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.

A creature isn't in the target list

Targets come from the active scene. Activate the scene (or move a token) so it re-syncs.

Stats are out of date

Cards show how old the stats are. Changes sync automatically while a GM is online; Sync now forces it.

The bot won't start

  • "refuses to start inside a module folder": move it out of Foundry's Data folder. See Security.
  • EADDRINUSE: another copy is already running on PORT. Stop it or change the port.
  • Commands missing in Discord: run npm run register.

Still stuck?

Open an issue. Include the bot log, the browser console (F12) and your system and version.

Clone this wiki locally