Skip to main content
Committed ⭐️⭐️
Mar 10, 2025 10:47 AM UTC
Question

Session  IdP refresh failed

We are trying to deploy a new project with cdf toolkit, but get the following error:

ERROR (ResourceCreationError): Failed to create resource(s). Error: Session 
IdP refresh failed | code: 400 | X-Request-ID: 
34cc5242-b88e-991e-87ef-c2b00a6df73e | cluster: api.
ERROR
ERROR: build step 0 "cognite/toolkit:0.4.2" failed: step exited with non-zero status: 1
 

    2 replies

    Architect
    Mar 10, 2025 12:18 PM UTC

    ​@Silje Raddum do you have any more information about the failing step? This looks like a resource that uses sessions (Transformations, Workflows, Functions) and that there’s some issue with its IdP credentials

    Committed ⭐️⭐️
    Mar 11, 2025 2:32 PM UTC

    Hello again! That question gave me a nice clue :) Up until recently I have been able to run workflows without specifying credentials. Since toolkit is smart and doesn’t re-deploy modules that haven’t changed, the error didn’t surface before adding a new module. The problem was solved by setting clientId and clientSecret in workflow authentication of the new module.

    (The error message didn’t contain any information on what module/resource the error originated from)