feat/parapharmacy-baby-products #31
@@ -84,6 +84,8 @@ export async function searchBabyProducts(query) {
|
|||||||
|
|
||||||
console.log(`Fetching from OFF API: ${searchTerm}`);
|
console.log(`Fetching from OFF API: ${searchTerm}`);
|
||||||
const headers = getOffHeaders();
|
const headers = getOffHeaders();
|
||||||
|
console.log(`[OFF] User-Agent: ${headers['User-Agent']}`);
|
||||||
|
console.log(`[OFF] URL: ${OFF_API_BASE}/api/v2/search?brands_tags=${searchTerm}`);
|
||||||
|
|
||||||
let lastError;
|
let lastError;
|
||||||
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
for (let attempt = 0; attempt <= MAX_RETRIES; attempt++) {
|
||||||
|
|||||||
Reference in New Issue
Block a user