Common problems
Each problem lists the symptom, the likely cause, and the fix. Run php artisan nimbus:doctor first.
Routes do not appear
Symptom. The routes list is empty, or a route is missing.
Cause. One of these.
- The route does not start with the
routes.prefixof the active application. - The route cache is old.
- The routes snapshot is on and holds old data.
- You are on another application in the switcher.
Fix.
- Check that
routes.prefixinconfig/nimbus.phpmatches your routes. The default isapi. - Run
php artisan route:clear. - With
snapshoton, click the refresh button next to the search field, or runphp artisan nimbus:snapshot:clear. - Check the application switcher at the bottom of the routes list.
The interface does not load
Symptom. The page returns a 404, shows a blank screen, or has no styles.
Cause. One of these.
APP_ENVis not inallowed_envs, so Nimbus registered no routes.- The assets are missing or old.
- The configuration or views are cached.
Fix.
- Add your environment to
allowed_envs, only if outsiders cannot reach it. - Publish the assets again with
php artisan vendor:publish --tag=nimbus-assets --force. - Run
php artisan config:clearandphp artisan view:clear. - Open the browser console and look for failed requests.
- Clear the browser website cache (for the host where Nimbus runs).
The relay does not work
Symptom. Requests hang, time out, or fail before they reach your API.
Cause. One of these.
- The server is single threaded.
APP_URLorbase_urlpoints to the wrong host.
Fix.
- Follow Single-threaded servers.
- Check that
APP_URLmatches the address in your browser. - Set
base_urlwhen your API runs on another host or port.
Authentication problems
Symptom. Requests return 401 or 403.
Cause. One of these.
- No authorization is set, or the token is wrong.
auth.guardis not the guard of your API routes.- The environment is not the current host, so impersonation is not available.
- The user to impersonate does not exist.
Fix.
- Check
auth.guardinconfig/nimbus.php. The doctor command checks that the guard and its provider exist. - For a bearer token, check that it is valid and has no extra spaces.
- For impersonation, switch to the current host and pick an existing user.
- See Authentication.
Schema validation errors
Symptom. The editor shows errors for a payload that your API accepts.
Cause. One of these.
- The rules are built at runtime, so Nimbus cannot read them.
- The rules use a custom rule that Nimbus does not know.
- The request validates data in a way the form does not show.
Fix.
- Check the rules of the form request that the route uses.
- Use dot notation such as
user.name, anditems.*.namefor lists. - Compare the form with the rules in your code. The form is built from them.
- Report rules that are read wrongly in the GitHub issues.