We upgrade SH Retool 3.18.1 β> 3.75.25-stable and got OAuth2 errors like:
{"endpoint":{"criticalityTier":"tier1","path":"/api/user","service":"backend","team":"@tryretool/hub"},"error":{"level":"error","msg":"Internal server error: [\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"array\",\n \"path\": [\n \"platformLevelAuthSteps\"\n ],\n \"message\": \"Expected object, received array\"\n }\n]","stack":"ZodError: [\n {\n \"code\": \"invalid_type\",\n \"expected\": \"object\",\n \"received\": \"array\",\n \"path\": [\n \"platformLevelAuthSteps\"\n ],\n \"message\": \"Expected object, received array\"\n }\n]\n at get error [as error] (/retool_backend/bundle/main.js:123:12219)\n at r.parse (/retool_backend/bundle/main.js:123:13892)\n at /retool_backend/bundle/main.js:6159:73694\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)","type":"INTERNAL_ERROR"},"level":"info","message":{"http":{"method":"GET","request":{"time":0.04685107000172138},"status_code":500,"url_base":"https://<domain>","url_path":"/api/user"},"type":"REQUEST_FINISH"},"organization":{"id":1,"name":"<name>"},"pid":113,"requestId":"7d3931b7453ed4352cfbb80b3b79c7a6","retoolClientVersion":"3.75.25","timestamp":"2025-02-25T19:24:51.473Z","user":{"email":"<mail>o","sid":"<sid>"}}
Why it starts happened? And in which direction should I move for the fix? Maybe some system variables are needed?