|
|
@@ -456,8 +456,13 @@ export function ManageStoreDataContent({ defaultTab }: ManageStoreDataContentPro
|
|
|
if (response.ok) {
|
|
|
const result = await response.json();
|
|
|
setScraperContent(result.content || []);
|
|
|
+ } else if (response.status === 404 || response.status === 500) {
|
|
|
+ // Shop not found in scraper system - this is expected for some platforms
|
|
|
+ // Silently set empty content without logging error
|
|
|
+ setScraperContent([]);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ // Only log unexpected errors, not 404/500 from scraper API
|
|
|
console.error('Error fetching scraper content:', error);
|
|
|
}
|
|
|
};
|
|
|
@@ -480,8 +485,13 @@ export function ManageStoreDataContent({ defaultTab }: ManageStoreDataContentPro
|
|
|
if (response.ok) {
|
|
|
const result = await response.json();
|
|
|
setCustomUrls(result.custom_urls || []);
|
|
|
+ } else if (response.status === 404 || response.status === 500) {
|
|
|
+ // Shop not found in scraper system - this is expected for some platforms
|
|
|
+ // Silently set empty URLs without logging error
|
|
|
+ setCustomUrls([]);
|
|
|
}
|
|
|
} catch (error) {
|
|
|
+ // Only log unexpected errors, not 404/500 from scraper API
|
|
|
console.error('Error fetching custom URLs:', error);
|
|
|
}
|
|
|
};
|