Hi! I get the message “Failed to export data. Try...
# gooddata-ui
Hi! I get the message “Failed to export data. Try it later." an error occurred during the export process (see screenshot). The two export requests have statuses 201 and 200. I am using a simple Dashboard component and SSO authentication. Any idea what could be wrong here?
Copy code
import React from 'react';
import { Dashboard, } from "@gooddata/sdk-ui-dashboard";
import { idRef } from "@gooddata/sdk-model";
import { BackendProvider, WorkspaceProvider } from "@gooddata/sdk-ui-all";
import { backend } from "../service/backendService";

const GoodDataWidget = ({ widget }) => {
  return (
    <BackendProvider backend={backend}>
      <WorkspaceProvider workspace={widget.good_data_project_id}>
          <Dashboard dashboard={idRef(widget.good_data_dashboard_id)}/>

export default GoodDataWidget;
Hi Julia, do you have a request_id or error_id from the console?
No, there are no messages in the console. I can get X-GDC-REQUEST data from the "exportResult" request if it helps.
Hi @Julia Vorobey, could you please get the X-GDC-REQUEST data? It would also be helpful if you let us know what SDK version you are using. Thanks!
It was solved. Going through the source code of gooddata, and stepped through the export handler, this error was found:
TypeError: URL constructor: <http://spheremall.on.gooddata.com|spheremall.on.gooddata.com> is not a valid URL.
exportInsightWidgetHandler 823
it looks like the hostname of the backend should be set to
instead of
🙌 2
Great to hear that!