Skip to content

Web/Admin: Flow running returns 500 #9434

@macmoritz

Description

@macmoritz

Describe the bug
Running/testing/inspecting a flow out of the admin fails in a 500 or Json Error.

To Reproduce

  1. Open admin page
  2. Go into detail view of a flow
  3. Click any button in the 'run flow' section

Expected behavior
Flow test execution works :)

Logs
'with current user'-Button:

      GET https://authentik.../api/v3/flows/instances/senbax-login/execute/ 500 (Internal Server Error)
(anonymous) @ fetch.ts:49
(anonymous) @ runtime.js:86
s @ runtime.js:17
Promise.then (async)
f @ runtime.js:19
(anonymous) @ runtime.js:20
yt @ runtime.js:16
fetchApi @ runtime.js:77
(anonymous) @ runtime.js:155
s @ runtime.js:17
Promise.then (async)
f @ runtime.js:19
(anonymous) @ runtime.js:20
yt @ runtime.js:16
request @ runtime.js:153
(anonymous) @ FlowsApi.js:626
(anonymous) @ FlowsApi.js:20
c @ FlowsApi.js:16
flowsInstancesExecuteRetrieveRaw @ FlowsApi.js:613
(anonymous) @ FlowsApi.js:640
(anonymous) @ FlowsApi.js:20
c @ FlowsApi.js:16
flowsInstancesExecuteRetrieve @ FlowsApi.js:639
(anonymous) @ FlowViewPage.ts:168
handleEvent @ lit-html.ts:2068
o @ helpers.ts:100
Show 23 more frames
Show less
runtime.js:159 Uncaught (in promise) ResponseError: Response returned an error code
    at ze.<anonymous> (runtime.js:159:19)
    at Generator.next (<anonymous>)
    at s (runtime.js:17:58)
(anonymous) @ runtime.js:159
s @ runtime.js:17
Promise.then (async)
(anonymous) @ FlowViewPage.ts:171
handleEvent @ lit-html.ts:2068
o @ helpers.ts:100
Show 4 more frames
Show less

'Inspector'-Button
redirect works, but redirects to error page

execute/:1 Uncaught SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at execute/:25:22
(anonymous) @ execute/:25
execute/:1

       Failed to load resource: the server responded with a status of 500 ()

Version and Deployment (please complete the following information):

  • authentik version: 2024.4.0
  • Deployment: helm

Additional context
Maybe we could add an automated test for this.

Metadata

Metadata

Assignees

No one assigned

    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