❌ Lỗi kết nối Medusa
Không gọi được API từ:
https://medusa.nqt.vn{
"message": "Request failed with status code 400",
"name": "Error",
"stack": "Error: Request failed with status code 400\n at b.exports (/app/.next/server/chunks/ssr/[root-of-the-server]__0c5bnk0._.js:1:5422)\n at b.exports (/app/.next/server/chunks/ssr/[root-of-the-server]__0c5bnk0._.js:1:5578)\n at IncomingMessage.<anonymous> (/app/.next/server/chunks/ssr/[root-of-the-server]__0c5bnk0._.js:1:27036)\n at IncomingMessage.emit (node:events:536:35)\n at endReadableNT (node:internal/streams/readable:1698:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"x-publishable-api-key": "pk_905c37140232656cec2be63332b349f52539e75cf2ce9afaef5d7660df4e4222",
"User-Agent": "axios/0.24.0"
},
"baseURL": "https://medusa.nqt.vn",
"raxConfig": {
"retry": 3,
"backoffType": "exponential",
"currentRetryAttempt": 0,
"retryDelay": 100,
"httpMethodsToRetry": [
"GET",
"HEAD",
"PUT",
"OPTIONS",
"DELETE"
],
"noResponseRetries": 2,
"checkRetryAfter": true,
"maxRetryAfter": 300000,
"statusCodesToRetry": [
[
100,
199
],
[
429,
429
],
[
500,
599
]
]
},
"method": "get",
"withCredentials": true,
"url": "/store/products",
"json": true
},
"status": 400
}