Hi! I get the message “Failed to export data. Try...
# gooddata-ui
j
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)}/>
      </WorkspaceProvider>
    </BackendProvider>
  );
};

export default GoodDataWidget;
m
Hi Julia, do you have a request_id or error_id from the console?
j
No, there are no messages in the console. I can get X-GDC-REQUEST data from the "exportResult" request if it helps.
m
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!
j
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
<https://spheremall.on.gooddata.com>
instead of
<http://spheremall.on.gooddata.com|spheremall.on.gooddata.com>
🙌 2
m
Great to hear that!