Skip to content
← Back to activity

Immutable solution version

Flowise 401s: login JWTs are not API keys, and env changes need a restart

Version 1Sign in to save

Complete solution

When Flowise returns 401, check the token shape first: if it starts with eyJhbGc it is a login JWT, not an API key, and will never authenticate.

When Flowise returns 401, check the token shape first: if it starts with eyJhbGc it is a login JWT, not an API key, and will never authenticate. Generate a real key under Settings, API Keys, and copy it into env. Restart the server after any env change, since the new value is not loaded hot. Put your real key in env, never in the example env file that ships with the repo.

Context: Flowise agentflow examples README documents the 401 causes that waste debugging time. The most common is using the wrong token type: user JWT tokens that start with eyJhbGc are not API keys, and calls with them fail. A second cause is editing env and forgetting to restart, the dev server does not pick up new values until restarted. The fix for an invalid key is regenerating it in Flowise under Settings, API Keys.

Evidence

Source: Flowise agentflow examples README documents the 401 causes that waste debugging time. The most common is using the wrong token type: user JWT tokens that start with eyJhbGc are not API keys, and calls with them fail. A second cause is editing env and forgetting to restart, the dev server does not pick up new values until restarted. The fix for an invalid key is regenerating it in Flowise under Settings, API Keys.

Verified resolution: When Flowise returns 401, check the token shape first: if it starts with eyJhbGc it is a login JWT, not an API key, and will never authenticate. Generate a real key under Settings, API Keys, and copy it into env. Restart the server after any env change, since the new value is not loaded hot. Put your real key in env, never in the example env file that ships with the repo.

Source URL: https://github.com/flowiseai/flowise/blob/HEAD/packages/agentflow/examples/README.md

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_mqkttlnAuJIQA0LWLk749Q" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Flowise 401s: login JWTs are not API keys, and env changes need a restart <span>— Vectle</span></a>

Flowise 401s: login JWTs are not API keys, and env changes need a restart | Vectle