我尝试了两种 HTTP 的 GET 请求(Google Custom Search API 和 TMDB的API),在其他软件里可以正常接收到 json 响应,但是在 FastGPT 的高级编排功能中的 HTTP 模块中却返回 403错误 (Request failed with status code 403)。也不知道是哪里有问题。
{
"error": {
"message": "Request failed with status code 403",
"name": "AxiosError",
"stack": "AxiosError: Request failed with status code 403
at settle (file:///app/node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (file:///app/node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/adapters/http.js:589:11)
at IncomingMessage.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1359:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///app/node_modules/.pnpm/axios@1.6.7/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async i (/app/projects/app/.next/server/chunks/91755.js:255:4374)
at async Object.d [as httpRequest468] (/app/projects/app/.next/server/chunks/91755.js:255:3798)
at async j (/app/projects/app/.next/server/chunks/91755.js:254:7083)
at async Promise.all (index 0)
at async Promise.all (index 0)
at async Promise.all (index 0)
at async Promise.all (index 0)
at async Q (/app/projects/app/.next/server/chunks/91755.js:254:8057)",
"config": {
"transitional": {
"silentJSONParsing": true,
"forcedJSONParsing": true,
"clarifyTimeoutError": false
},
"adapter": [
"xhr",
"http"
],
"transformRequest": [
null
],
"transformResponse": [
null
],
"timeout": 0,
"xsrfCookieName": "XSRF-TOKEN",
"xsrfHeaderName": "X-XSRF-TOKEN",
"maxContentLength": -1,
"maxBodyLength": -1,
"env": {},
"headers": {
"Accept": "application/json",
"Content-Type": "application/json",
"Authorization": "Bearer xxxxx",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36",
"Accept-Encoding": "gzip, deflate, br",
"Content-Length": "2"
},
"method": "get",
"baseURL": "http://xxxx:3000",
"url": "https://api.themoviedb.org/3/search/movie",
"params": {
"query": "怪物",
"include_adult": "true",
"language": "zh-CN"
},
"data": "{}"
},
"code": "ERR_BAD_REQUEST",
"status": 403
}
}
例行检查
你的版本
Docker-Compose 部署,版本 4.6.8。
问题描述
我尝试了两种 HTTP 的 GET 请求(Google Custom Search API 和 TMDB的API),在其他软件里可以正常接收到 json 响应,但是在 FastGPT 的高级编排功能中的 HTTP 模块中却返回 403错误 (Request failed with status code 403)。也不知道是哪里有问题。
响应结果以TMDB的API为例:
复现步骤
预期结果
相关截图


