Eli
08/21/2023, 3:19 PMIvana Gasparekova
08/21/2023, 3:26 PMEli
08/21/2023, 3:28 PMEli
08/21/2023, 3:29 PMloading.error
. Value: Error: An unexpected error has occurred`
AnalyticalBackendError index.js:28
UnexpectedError index.js:101
convertApiError errorHandling.js:23
node_modules analytics.js:302224
getSettingsForCurrentUser index.js:87
getSettingsForCurrentUser index.js:21
loadSettingsForCurrentUser resolveDashboardConfig.js:25
resolveUserSettings resolveDashboardConfig.js:54
Redux 16
node_modules Immutable
node_modules analytics.js:351180
dispatch dashboard:1
node_modules analytics.js:348704
React 8
workLoop scheduler.development.js:266
flushWork scheduler.development.js:239
performWorkUntilDeadline scheduler.development.js:533
js scheduler.development.js:571
js scheduler.development.js:633
Webpack 11
Caused by: TypeError: (intermediate value).data.data is undefined
node_modules analytics.js:307710
node_modules analytics.js:302217
getSettingsForCurrentUser index.js:87
getSettingsForCurrentUser index.js:21
loadSettingsForCurrentUser resolveDashboardConfig.js:25
resolveUserSettings resolveDashboardConfig.js:54
Redux 16
node_modules Immutable
node_modules analytics.js:351180
dispatch dashboard:1
node_modules analytics.js:348704
React 8
workLoop scheduler.development.js:266
flushWork scheduler.development.js:239
performWorkUntilDeadline scheduler.development.js:533
js scheduler.development.js:571
js scheduler.development.js:633
Webpack 11
Take a look at the reducer(s) handling this action type: loadingSlice/setLoadingError.
(See https://redux.js.org/faq/organizing-state#can-i-put-functions-promises-or-other-non-serializable-items-in-my-store-state) dashboard236725Ivana Gasparekova
08/21/2023, 3:33 PMJakub Vajda
08/21/2023, 4:21 PMconst backend = tigerFactory({
hostname: "<https://_______.demo.cloud.gooddata.com/>"
}).withAuthentication(new ContextDeferredAuthProvider(redirectToTigerAuthentication));
also these backend libraries are stored in @gooddata/sdk-backend-tiger package. May I see a portion of your package.json
file that corresponds to @gooddata packages?
Having these information we can troubleshoot better.
Cheers,
JakubEli
08/21/2023, 7:18 PMconst backend = tigerFactory().onHostname("<https://____.trial.cloud.gooddata.com/gdc>").withAuthentication(new ContextDeferredAuthProvider(redirectToTigerAuthentication));
Ivana Gasparekova
08/21/2023, 7:21 PMJakub Vajda
08/21/2023, 7:38 PM/gdc
in the endpoint address seems rather suspicious to me, can you try to remove it?
Also the react-components seems to be an obsolete one, however I am not aware of the context.
Now you should be able to use it as follows:
import tigerFactory, { ContextDeferredAuthProvider, redirectToTigerAuthentication } from "@gooddata/sdk-backend-tiger";
import { BackendProvider, WorkspaceProvider } from "@gooddata/sdk-ui";
import { Dashboard } from "@gooddata/sdk-ui-dashboard";
import { idRef } from "@gooddata/sdk-model";
import "@gooddata/sdk-ui-dashboard/styles/css/main.css";
const backend = tigerFactory().onHostname("<https://____.trial.cloud.gooddata.com/gdc>").withAuthentication(new ContextDeferredAuthProvider(redirectToTigerAuthentication));
const dashboard = idRef("this_hex_code_to_identify_dashboard");
...
<Dashboard dashboard={dashboard} />
Does it match with your case?Eli
08/21/2023, 7:51 PMXML Parsining Error: not well-formed
errors in the console. We also still have the error
A non-serializable value was detected in the state
Here is some more context:
import tigerFactory, { ContextDeferredAuthProvider, redirectToTigerAuthentication } from "@gooddata/sdk-backend-tiger";
import { BackendProvider, WorkspaceProvider } from "@gooddata/sdk-ui";
import { Dashboard } from "@gooddata/sdk-ui-dashboard";
import { idRef } from "@gooddata/sdk-model";
import "@gooddata/sdk-ui-dashboard/styles/css/main.css";
const backend = tigerFactory()
.onHostname("<https://_____.trial.cloud.gooddata.com/>") // this should be the domain where the GoodData Cloud or <http://GoodData.CN|GoodData.CN> is hosted
.withAuthentication(new ContextDeferredAuthProvider(redirectToTigerAuthentication));
const dashboard = idRef("___");
export const EmbeddedDashboard = () => <Dashboard dashboard={dashboard} />;
function App() {
return (
<BackendProvider backend={backend}>
<WorkspaceProvider workspace="_____">
<EmbeddedDashboard />
</WorkspaceProvider>
</BackendProvider>
);
}
Jakub Vajda
08/21/2023, 8:06 PMnon-serializable value detected in the state
My search pointed out, this might be some specific problem related to redux-toolkit.
https://stackoverflow.com/questions/61704805/getting-an-error-a-non-serializable-value-was-detected-in-the-state-when-using
Are you using the toolkit?
Lastly if the @gooddata/react-components
is not used can you remove it?
I am not sure what is the origin of the package as I cannot find that in the npm package registry.Eli
08/21/2023, 8:21 PMTiger backend threw an error: {detail: 'The requested endpoint does not exist or you do not have permission to access it.', status: 404,
Eli
08/21/2023, 8:32 PM