Fusion Framework logo by Cipher UnitFusion

Troubleshooting

Common Fusion setup and runtime problems

Route returns 404

CauseFix
Module file never importedImport it from main before listen()
C# type not registeredCall Route.Register<T>()
Wrong path / missing version prefixCheck version= and [module] expansion
Custom route template mistakeVerify @http_get / @http_post / … template and [action]

Settings not loading

CauseFix
Wrong cwdRun from project root (fusion command run:dev)
Wrong envSet FUSION_ENV or use run:prod / --prod
Looking for flat keys but file nests under configFramework merges config object — use settings.get("port") not settings.get("config.port") unless you stored it that way

JWT middleware always 401

  • Missing Authorization: Bearer … header
  • Malformed token when using default decode
  • Custom verify returning None

Roles always 403

  • bearer_jwt not registered before require_roles / roles=
  • Payload missing roles claim (or custom claim name not configured)

Native / FFI errors (C#)

  • Build fusion-ffi or use the NuGet-packaged native binary
  • Set FUSION_FFI_PATH for local development if the loader cannot find the library

Swagger missing

  • swagger.enabled is false
  • swagger.path disabled
  • App failed before mount — check startup exceptions

Import errors after fusion add

  • Build step in fusion.module.toml failed
  • Wrong entry package name
  • Re-run fusion add and read CLI output

Port already in use

Change port in fusion.<env>.json / nested config.port.

On this page