You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
} catch (error) {
console.log('[PRODUCTS_GET]', error);
return new NextResponse("Internal error", { status: 500 });
}
// Adicione um retorno no final da função, caso nenhum dos retornos anteriores seja alcançado.
return new NextResponse("Internal error", { status: 500 });
})`
The text was updated successfully, but these errors were encountered:
The client receives a 500 response even though the code execution has not finished.
GET
`routerGET.get(async (req, res) => {
try {
const storeId = res.params.storeId;
const { searchParams } = new URL(req.url);
} catch (error) {
console.log('[PRODUCTS_GET]', error);
return new NextResponse("Internal error", { status: 500 });
}
// Adicione um retorno no final da função, caso nenhum dos retornos anteriores seja alcançado.
return new NextResponse("Internal error", { status: 500 });
})`
The text was updated successfully, but these errors were encountered: