diff --git a/ui/src/components/UpstreamErrorPage.tsx b/ui/src/components/UpstreamErrorPage.tsx index 2a7380bb5..4c236aeb2 100644 --- a/ui/src/components/UpstreamErrorPage.tsx +++ b/ui/src/components/UpstreamErrorPage.tsx @@ -9,14 +9,23 @@ import { Link, Stack, Typography, + TypographyProps, } from "@mui/material"; import React, { FC } from "react"; import { ErrorPageProps } from "./ErrorPage"; +import IDField from "./IDField"; + +const TextBlock: FC = ({ children }) => { + return ( + + {children} + + ); +}; export const UpstreamErrorPage: FC = ({ data }) => { const status = data?.status || 500; - console.log(data.statusText); return ( @@ -91,10 +100,10 @@ export const UpstreamErrorPage: FC = ({ data }) => { What happened? - + The web server is not returning a connection. As a result, the webpage is not displaying. - + @@ -102,30 +111,35 @@ export const UpstreamErrorPage: FC = ({ data }) => { What can I do? - + If you are a visitor of this website: - - Please try again in a few minutes. - + Please try again in a few minutes. If you are the owner of this website: - + Contact your hosting provider letting them know your web server is not responding. - - - Error Text: {data.statusText} - + + Error Text: {data.statusText} + {data?.requestId && ( + + Request ID: + + )} Additional troubleshooting information.