Skip to content

[Formulus] App Bundle Download Fails with 401 When Switching Servers #111

@najuna-brian

Description

@najuna-brian

Problem

When switching from local server to demo server (or vice versa), app bundle downloads fail with 401 Unauthorized errors. The error occurs when downloading form files (schema.json, ui.json) from the new server.

Root Cause

The authentication token is cached in memory after the first use. When switching servers, the cached token from the previous server is reused, causing authentication failures on the new server.

Expected Behavior

App bundle should download successfully after switching to a different server.

Steps to Reproduce

  1. Login to local server
  2. Switch to demo server
  3. Attempt to download app bundle
  4. Observe 401 errors for all file downloads

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions