Merged PR 1228: handles docapi error
handles docapi error Related work items: #12110
This commit is contained in:
+23
@@ -4,6 +4,13 @@ GRANT_TYPE = "client_credentials"
|
|||||||
|
|
||||||
HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c
|
HASHKEY = 028ffbae928d7191c0017f298260995f901d78eabde1436c0af0423459cc3715832136d84f68818d3a96399467b52143e273d4f3bf4ae190848891535421cd6c
|
||||||
|
|
||||||
|
//CNR oauth CNR
|
||||||
|
CLIENT_ID = 9b834097-03d7-409b-b038-ecfec31a394a
|
||||||
|
CLIENT_SECRET = AU88Q~NBOVOXqwb4mBx9y.NMIZ9s1o7boqZoKcSE
|
||||||
|
RELAY_ROOT = https://ar-ns-lz-pedw-cnr-uks-01.servicebus.windows.net/ar-hc-lz-pedw-cnr-uks-01/
|
||||||
|
RELAYURI = "ar-ns-lz-pedw-cnr-uks-01.servicebus.windows.net"
|
||||||
|
RELAYPATH = "ar-hc-lz-pedw-cnr-uks-01"
|
||||||
|
|
||||||
//Dev oauth ESNR
|
//Dev oauth ESNR
|
||||||
CLIENT_ID = 9b834097-03d7-409b-b038-ecfec31a394a
|
CLIENT_ID = 9b834097-03d7-409b-b038-ecfec31a394a
|
||||||
CLIENT_SECRET = AU88Q~NBOVOXqwb4mBx9y.NMIZ9s1o7boqZoKcSE
|
CLIENT_SECRET = AU88Q~NBOVOXqwb4mBx9y.NMIZ9s1o7boqZoKcSE
|
||||||
@@ -54,6 +61,10 @@ NEXTAUTH_URL = $API_ROOT
|
|||||||
NEXTAUTH_URL_INTERNAL = $API_ROOT
|
NEXTAUTH_URL_INTERNAL = $API_ROOT
|
||||||
NEXTAUTH_SECRET = SuperSecret
|
NEXTAUTH_SECRET = SuperSecret
|
||||||
|
|
||||||
|
// CNR sql server
|
||||||
|
//DATABASE_URL = sqlserver://sql-srv-plt-pedw-cnr-uks-01.database.windows.net:1433;database=PEDWDev;user=RobBondSQL;password=GhWKr62F5sQ69dZx;encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30;authentication=ActiveDirectoryPassword
|
||||||
|
|
||||||
|
|
||||||
// dev test sql server
|
// dev test sql server
|
||||||
DATABASE_URL = sqlserver://pedw-dev-test-sql-svr.database.windows.net:1433;database=PEDWDev;user=RobBondSQL;password=GhWKr62F5sQ69dZx;encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30;authentication=ActiveDirectoryPassword
|
DATABASE_URL = sqlserver://pedw-dev-test-sql-svr.database.windows.net:1433;database=PEDWDev;user=RobBondSQL;password=GhWKr62F5sQ69dZx;encrypt=true;trustServerCertificate=true;hostNameInCertificate=*.database.windows.net;loginTimeout=30;authentication=ActiveDirectoryPassword
|
||||||
|
|
||||||
@@ -78,6 +89,12 @@ AZURE_CLIENT_ID = $CLIENT_ID
|
|||||||
AZURE_TENANT_ID = $TENANT
|
AZURE_TENANT_ID = $TENANT
|
||||||
AZURE_CLIENT_SECRET = $CLIENT_SECRET
|
AZURE_CLIENT_SECRET = $CLIENT_SECRET
|
||||||
|
|
||||||
|
// CNR key
|
||||||
|
//AZURE_STORAGE_ACCOUNT_NAME = "sapltpedwcnruks01"
|
||||||
|
//AZURE_STORAGE_ACCOUNT_KEY = JS3ZIXianhYhB1lZrHB+bXbdzaLlON0alCyKrFAb+jVEwr9iqo2dty92EBxwnufNFM+CSN/fKX2R+AStDn0byg==
|
||||||
|
//AZURE_PEDW_STORAGE_ENDPOINT = https://sapltpedwcnruks01.blob.core.windows.net
|
||||||
|
|
||||||
|
|
||||||
// dev key
|
// dev key
|
||||||
AZURE_STORAGE_ACCOUNT_NAME = "pedwdev"
|
AZURE_STORAGE_ACCOUNT_NAME = "pedwdev"
|
||||||
AZURE_STORAGE_ACCOUNT_KEY = JS3ZIXianhYhB1lZrHB+bXbdzaLlON0alCyKrFAb+jVEwr9iqo2dty92EBxwnufNFM+CSN/fKX2R+AStDn0byg==
|
AZURE_STORAGE_ACCOUNT_KEY = JS3ZIXianhYhB1lZrHB+bXbdzaLlON0alCyKrFAb+jVEwr9iqo2dty92EBxwnufNFM+CSN/fKX2R+AStDn0byg==
|
||||||
@@ -96,6 +113,12 @@ AZURE_PEDW_STORAGE_ENDPOINT = https://pedwdev.blob.core.windows.net
|
|||||||
//AZURE_PEDW_STORAGE_ENDPOINT = https://pedwpp.blob.core.windows.net
|
//AZURE_PEDW_STORAGE_ENDPOINT = https://pedwpp.blob.core.windows.net
|
||||||
|
|
||||||
|
|
||||||
|
// PROD key
|
||||||
|
//AZURE_STORAGE_ACCOUNT_NAME = "pedwprod"
|
||||||
|
//AZURE_STORAGE_ACCOUNT_KEY = koZ46STRqapSa2Dod8MLL6aju1eYLhhyJ6DXpCLMTnFLJvbDT6CHUv/jwr5U/Ta8a60MWzwToHQy+AStADO7sg==
|
||||||
|
//AZURE_PEDW_STORAGE_ENDPOINT = https://pedwprod.blob.core.windows.net
|
||||||
|
|
||||||
|
|
||||||
AZURE_PEDW_CONTAINER = "pedwapplications"
|
AZURE_PEDW_CONTAINER = "pedwapplications"
|
||||||
AZURE_PEDW_QUEUE_ENDPOINT = https://$AZURE_STORAGE_ACCOUNT_NAME.queue.core.windows.net
|
AZURE_PEDW_QUEUE_ENDPOINT = https://$AZURE_STORAGE_ACCOUNT_NAME.queue.core.windows.net
|
||||||
|
|
||||||
|
|||||||
@@ -1092,8 +1092,6 @@ export const createWatchedCases = async (formValues) => {
|
|||||||
data: data,
|
data: data,
|
||||||
};
|
};
|
||||||
|
|
||||||
console.log("===§=§=§=§=§=§=§=§=§=", config);
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const res = await axios(config);
|
const res = await axios(config);
|
||||||
return res.data;
|
return res.data;
|
||||||
|
|||||||
@@ -105,6 +105,6 @@ export default async function ApiProxy(req, res) {
|
|||||||
})
|
})
|
||||||
.catch((error) => {
|
.catch((error) => {
|
||||||
consoleLogger(error);
|
consoleLogger(error);
|
||||||
res.status(400).json(error);
|
res.redirect("/filenotavailable");
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,48 @@
|
|||||||
|
// 404.js
|
||||||
|
import useTranslation from "next-translate/useTranslation";
|
||||||
|
import Head from "next/head";
|
||||||
|
import Link from "next/link";
|
||||||
|
import CookieBanner from "../components/cookieBanner";
|
||||||
|
import Footer from "../components/footer";
|
||||||
|
import Header from "../components/header";
|
||||||
|
|
||||||
|
const FileNotAvailable = (props) => {
|
||||||
|
let { t, lang } = useTranslation();
|
||||||
|
const { footerLinks, pages } = props;
|
||||||
|
|
||||||
|
const previousURL = document.referrer;
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<Head>
|
||||||
|
<title>
|
||||||
|
{t("common:404-not-found-title")} -{" "}
|
||||||
|
{t("common:service-name")}
|
||||||
|
</title>
|
||||||
|
</Head>
|
||||||
|
<div id="page_wrapper">
|
||||||
|
<CookieBanner />
|
||||||
|
<Header />
|
||||||
|
<div className="govuk-width-container govuk-!-padding-bottom-9">
|
||||||
|
<main className="govuk-main-wrapper govuk-!-padding-top-9 govuk-!-padding-bottom-9">
|
||||||
|
<div className="govuk-grid-row">
|
||||||
|
<div className="govuk-grid-column-full ">
|
||||||
|
<h1>File not available</h1>
|
||||||
|
<p className="govuk-body">
|
||||||
|
At this time, the document you require is
|
||||||
|
not available, please try again later.
|
||||||
|
</p>
|
||||||
|
<Link href={previousURL}>
|
||||||
|
Return to case details
|
||||||
|
</Link>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</main>
|
||||||
|
</div>
|
||||||
|
<Footer footerLinks={footerLinks} ticketnumber={props} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
};
|
||||||
|
|
||||||
|
export default FileNotAvailable;
|
||||||
@@ -1423,6 +1423,27 @@ textarea,
|
|||||||
width: 30%;
|
width: 30%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.card,
|
||||||
|
.newAppealForm,
|
||||||
|
.wgForm {
|
||||||
|
animation: fadeIn .5s ease-in;
|
||||||
|
animation: fadeIn .5s;
|
||||||
|
-webkit-animation: fadeIn .5s;
|
||||||
|
-moz-animation: fadeIn .5s;
|
||||||
|
-o-animation: fadeIn .5s;
|
||||||
|
-ms-animation: fadeIn .5s;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes fadeIn {
|
||||||
|
0% {
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
100% {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.card-body {
|
.card-body {
|
||||||
.govuk-summary-list__key {
|
.govuk-summary-list__key {
|
||||||
width: 45%;
|
width: 45%;
|
||||||
|
|||||||
Reference in New Issue
Block a user