Dashboard › craft › discover-location empty Craft JSON
01a07ecc-3263-7793-bb71-a9d915bc86f5Trap: JSON.parse() of Craft workspace output looks adequate because malformed JSON throws, but empty output leaks raw Unexpected end of JSON input instead of the controller’s contextual discovery failure. Fix: catch all JSON parse errors and throw Craft workspace discovery returned an invalid workspace list., then require an array; workflow diagnostics must identify failed workspace discovery rather than JSON internals.