mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-28 14:14:08 +00:00
skipping the cdbmgmtprodby dts jobs
This commit is contained in:
@@ -43,6 +43,13 @@ export const getDataTransferJobs = async (
|
|||||||
dataTransferJobs = [...dataTransferJobs, ...(dataTransferFeeds?.value || [])];
|
dataTransferJobs = [...dataTransferJobs, ...(dataTransferFeeds?.value || [])];
|
||||||
while (dataTransferFeeds?.nextLink) {
|
while (dataTransferFeeds?.nextLink) {
|
||||||
try {
|
try {
|
||||||
|
if (dataTransferFeeds?.nextLink.includes("cdbmgmtprodby.documents.azure.com:450")) {
|
||||||
|
console.warn(
|
||||||
|
"Skipping fetching next page of data transfer jobs due to invalid nextLink:",
|
||||||
|
dataTransferFeeds.nextLink,
|
||||||
|
);
|
||||||
|
break;
|
||||||
|
}
|
||||||
const nextResponse = await window.fetch(dataTransferFeeds.nextLink, {
|
const nextResponse = await window.fetch(dataTransferFeeds.nextLink, {
|
||||||
headers: {
|
headers: {
|
||||||
Authorization: userContext.authorizationToken,
|
Authorization: userContext.authorizationToken,
|
||||||
|
|||||||
Reference in New Issue
Block a user