diff --git a/app/api_report.go b/app/api_report.go index c7cc0c5f6..5c8b0dff6 100644 --- a/app/api_report.go +++ b/app/api_report.go @@ -13,7 +13,8 @@ import ( // Raw report handler func makeRawReportHandler(rep Reporter) CtxHandlerFunc { return func(ctx context.Context, w http.ResponseWriter, r *http.Request) { - rawReport, err := rep.Report(ctx, time.Now()) + timestamp := deserializeTimestamp(r.URL.Query().Get("timestamp")) + rawReport, err := rep.Report(ctx, timestamp) if err != nil { respondWith(w, http.StatusInternalServerError, err) return diff --git a/client/app/scripts/components/troubleshooting-menu.js b/client/app/scripts/components/troubleshooting-menu.js index 54c88e8ab..2e0f7895b 100644 --- a/client/app/scripts/components/troubleshooting-menu.js +++ b/client/app/scripts/components/troubleshooting-menu.js @@ -6,7 +6,7 @@ import { resetLocalViewState, clickDownloadGraph } from '../actions/app-actions'; -import { getApiPath } from '../utils/web-api-utils'; +import { getReportUrl } from '../utils/web-api-utils'; class DebugMenu extends React.Component { constructor(props, context) { @@ -21,9 +21,7 @@ class DebugMenu extends React.Component { } render() { - const reportDownloadUrl = process.env.WEAVE_CLOUD - ? `${getApiPath()}/api/report` - : 'api/report'; + const { pausedAt } = this.props; return (