UAA inicialization error

Hi, we use fullstack-template-project as a base in our react application and after updating to the following version we get inicialization problem.
@com.mgmtp.a12.dataservices/dataservices-access”: “32.1.0”,
@com.mgmtp.a12.dataservices/dataservices-server-connector”: “32.1.0”,
@com.mgmtp.a12.overview-engine/overview-engine-core”: “32.1.0”,
@com.mgmtp.a12.uaa/uaa-authentication-client”: “3.1.0”,
@com.mgmtp.a12.widgets/widgets-core”: “32.1.0”,
@com.mgmtp.a12.widgets/widgets-styles”: “32.1.0”,
@com.mgmtp.a12.workflows/workflows-client”: “6.1.0”,
@com.mgmtp.a12/bap-client”: “10.2.0”,
@com.mgmtp.a12/bap-form-engine”: “32.1.0”,
@com.mgmtp.a12/connector”: “3.0.0”,
@com.mgmtp.a12/kernel-core-runtime-api”: “25.0.0”,
@com.mgmtp.a12/kernel-md-facade”: “25.0.0”,
@com.mgmtp.a12/localization”: “3.0.0”,
@com.mgmtp.a12/logging”: “3.0.0”,
@com.mgmtp.a12/model-api”: “24.3.0”

Last call before error:
UAA/Serverrequest Request {method: “GET”, relativeUrl: “/uaa-authentication/currentUser”, customHeaders: Array(1)}
ConsoleStrategies.js?8048:138
Problem:
UAA/Restore Error on restoring the authentication state TypeError: _a.getState is not a function
at AuthorizationHeaderFilter.eval [as uaaSlice] (local.tsx?fad0:85)
at AuthorizationHeaderFilter.doRequestFilter (AuthorizationHeaderFilter.ts?95ea:36)
at FilterChain.startRequestFilter (FilterChain.ts?74db:46)
at RestServerConnector.eval (RestServerConnector.ts?00a7:85)
at step (RestServerConnector.js:33)
at Object.eval [as next] (RestServerConnector.js:14)
at eval (RestServerConnector.js:8)
at new Promise ()
at __awaiter (RestServerConnector.js:4)
at RestServerConnector.fetchData (RestServerConnector.ts?00a7:84)

How could I fix the issue?

Thank you in advance.

Regards,
Jozsef Dulai

Not sure if it’s the cause of this issue but there was a bug in UAA 3.1.0 which is fixed in UAA 3.1.1 along with Data Services 32.1.1 and Workflows 6.1.2. So upgrading to these is worth a try and you should do it anyway.


Most likely, your other thread Automatically update page has the same root cause as this one.

hi @jozsef-sharp-packet,

please see this bug ticket i created for uaa (<INTERNAL_LINK>) fix version is uaa 3.2.0.

The issue is caused by uaa initialization of redux store which changed in code level and causes projects with specific auth methods (in my case local auth) to do the restore auth state after the first render of uaa provider.

like @peter-smooth-cursor already wrote this could also be the same issue like your other post.

Hi @peter-smooth-cursor and @markus-agile-fog,

Thank you for your answers. I could fixe the problem with this ticket:
<INTERNAL_LINK>
Regards,
Jozsef Dulai