board logo
Posted by: WUICTeam - Tuesday, November 3, 2026 9:01:29 AM
[b]Question[/b] I want a script or health check that tells whether an installation is still waiting for the first-run wizard. I call [c]GET /api/Meta/FirstRunStatus[/c], but on a configured install fields like [c]connection[/c] and [c]DataDBName[/c] come back as [c]null[/c]. Is something broken, and can I still call the wizard methods such as [c]configure_wuic[/c] afterwards? [b]Answer[/b] Nothing is broken: [c]FirstRunStatus[/c] is public (no login needed) and deliberately returns less once [c]AppSettings.firstRun[/c] is [c]false[/c]. Use the [c]firstRun[/c] boolean as your check. [b]What the endpoint returns[/b] [list] [*][c]firstRun[/c], [c]dbms[/c] and [c]tutorialAvailable[/c] are always present. [*]While [c]firstRun[/c] is [c]true[/c] you also get [c]DataDBName[/c], [c]projectDataFolder[/c], [c]projectAssemblyName[/c], [c]connection[/c], [c]machineFingerprint[/c], [c]pythonInstalled[/c], [c]pythonVersion[/c] and [c]pythonSupported[/c]. The wizard uses them to pre-fill its form. [*]After the setup those fields are [c]null[/c] on purpose: the endpoint is anonymous, so it must not expose a connection string or server paths on a running system. [/list] [code] curl -s https://your-host/api/Meta/FirstRunStatus # configured install { "firstRun": false, "dbms": "mssql", "DataDBName": null, "connection": null, "tutorialAvailable": true, ... } [/code] [b]Who can call the wizard methods[/b] Methods such as [c]MetaService.configure_wuic[/c] and [c]MetaService.get_database_names[/c] are open to anonymous callers only while [c]firstRun[/c] is [c]true[/c]. Once it is [c]false[/c] they require a valid session of an administrator; anyone else gets a 401. So on a configured system you can still run them, but logged in as admin. [b]Pitfall[/b] The flag is read with a strict boolean parse. A value other than [c]true[/c] or [c]false[/c] in [c]appsettings.{Environment}.json[/c] is treated as [c]false[/c], and the install will not enter the wizard. Also, the response is sent with [c]Cache-Control: no-store[/c], so don't put a cache in front of it expecting to reuse the answer. [url=https://wuic-framework.com/docs/scaffolding-iniziale]Documentation: Initial Scaffolding[/url]