O edpoint api/fipe/tabelas/v1 está retornando um erro não tratado, resultando em status code 500.
Aparentemente, a API está tentando se comunicar com veiculos.fipe.org.br, no endpoint api/veiculos/ConsultarTabelaDeReferencia, e recebendo um 403.
Response completo:
{
"message": "Request failed with status code 403",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 403\n at settle (file:///var/task/node_modules/axios/lib/core/settle.js:19:12)\n at BrotliDecompress.handleStreamEnd (file:///var/task/node_modules/axios/lib/adapters/http.js:599:11)\n at BrotliDecompress.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)\n at Axios.request (file:///var/task/node_modules/axios/lib/core/Axios.js:45:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async listReferenceTables (/var/task/.next/server/pages/api/fipe/preco/v1/[fipeCode].js:252:23)\n at async Array.FipeReferenceTables (/var/task/.next/server/pages/api/fipe/tabelas/v1.js:51:29)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http",
"fetch"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json, text/plain, */*",
"Content-Type": "application/x-www-form-urlencoded",
"User-Agent": "axios/1.8.3",
"Accept-Encoding": "gzip, compress, deflate, br"
},
"method": "post",
"url": "https://veiculos.fipe.org.br/api/veiculos/ConsultarTabelaDeReferencia",
"data": "",
"allowAbsoluteUrls": true
},
"code": "ERR_BAD_REQUEST",
"status": 403
}
O edpoint
api/fipe/tabelas/v1está retornando um erro não tratado, resultando em status code 500.Aparentemente, a API está tentando se comunicar com
veiculos.fipe.org.br, no endpointapi/veiculos/ConsultarTabelaDeReferencia, e recebendo um403.Response completo:
{ "message": "Request failed with status code 403", "name": "AxiosError", "stack": "AxiosError: Request failed with status code 403\n at settle (file:///var/task/node_modules/axios/lib/core/settle.js:19:12)\n at BrotliDecompress.handleStreamEnd (file:///var/task/node_modules/axios/lib/adapters/http.js:599:11)\n at BrotliDecompress.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)\n at Axios.request (file:///var/task/node_modules/axios/lib/core/Axios.js:45:41)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async listReferenceTables (/var/task/.next/server/pages/api/fipe/preco/v1/[fipeCode].js:252:23)\n at async Array.FipeReferenceTables (/var/task/.next/server/pages/api/fipe/tabelas/v1.js:51:29)", "config": { "transitional": { "silentJSONParsing": true, "forcedJSONParsing": true, "clarifyTimeoutError": false }, "adapter": [ "xhr", "http", "fetch" ], "transformRequest": [ null ], "transformResponse": [ null ], "timeout": 0, "xsrfCookieName": "XSRF-TOKEN", "xsrfHeaderName": "X-XSRF-TOKEN", "maxContentLength": -1, "maxBodyLength": -1, "env": {}, "headers": { "Accept": "application/json, text/plain, */*", "Content-Type": "application/x-www-form-urlencoded", "User-Agent": "axios/1.8.3", "Accept-Encoding": "gzip, compress, deflate, br" }, "method": "post", "url": "https://veiculos.fipe.org.br/api/veiculos/ConsultarTabelaDeReferencia", "data": "", "allowAbsoluteUrls": true }, "code": "ERR_BAD_REQUEST", "status": 403 }