Internal error when hitting endpoint
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 技术栈
- aws, javascript, postgresql, webpack
调研方向
从 postgraphileOptions.js 和 CloudWatch 堆栈跟踪开始,重点检查捆绑的 bindings 以及 libpq 和 pg-native 模块。重现手动配置的 Lambda 请求,并确定原生 PostgreSQL 依赖为何收到 undefined 值;当 gateway 端点在没有此内部错误的情况下响应时,即表示完成。
由索引模型根据 Issue 内容生成。
描述
I'm trying to get a manually-configured Lambda up using this example. When I hit the gateway API endpoint, I get this error in the CloudWatch logs:
"TypeError: Cannot read property 'indexOf' of undefined",
" at Function.getFileName (webpack:///./node_modules/bindings/bindings.js?:178:16)",
" at bindings (webpack:///./node_modules/bindings/bindings.js?:82:48)",
" at Object.eval (webpack:///./node_modules/libpq/index.js?:1:147)",
" at eval (webpack:///./node_modules/libpq/index.js?:361:30)",
" at Object../node_modules/libpq/index.js (/var/task/index.js:3785:1)",
" at __webpack_require__ (/var/task/index.js:20:30)",
" at eval (webpack:///./node_modules/pg-native/index.js?:1:13)",
" at Object../node_modules/pg-native/index.js (/var/task/index.js:5848:1)",
" at __webpack_require__ (/var/task/index.js:20:30)",
" at eval (webpack:///./node_modules/pg/lib/native/client.js?:11:14)"
My postgraphileOptions.js are as follows:
exports.options = {
dynamicJson: true,
cors: true,
graphiql: false,
graphqlRoute: '/graphql',
externalUrlBase: `/${process.env.AWS_STAGE}`,
// If consuming JWT:
// jwtSecret: process.env.JWT_SECRET || String(Math.random()),
// If generating JWT:
//jwtPgTypeIdentifier: process.env.JWT_PG_TYPE_IDENTIFIER,
/* If you want to enable GraphiQL, you must use `externalUrlBase` so PostGraphile
* knows where to tell the browser to find the assets. Doing this is
* strongly discouraged, you should use an external GraphQL client instead.
graphiql: true,
enhanceGraphiql: true,
graphqlRoute: '/',
graphiqlRoute: '/graphiql',
*/
};
I'd appreciate any help anyone could give.
- 主要语言
- PLpgSQL
- 星标
- 144
- 派生
- 19
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphile/postgraphile-lambda-example 的其他 Issue
-
难度 3/5 1-2 天 新手友好度 35/100
-
难度 5/5 一周以上 新手友好度 25/100
graphile/postgraphile-lambda-example#33 · 1 条评论 ·
-
enhancement help wanted
难度 5/5 一周以上 新手友好度 20/100
graphile/postgraphile-lambda-example#16 · 15 条评论 ·
-
难度 1/5 1 小时以内 新手友好度 55/100
graphile/postgraphile-lambda-example#13 · 1 条评论 · 1 个 reaction ·
查看 graphile/postgraphile-lambda-example 的全部 Issue
相似的 Issue
-
bug needs-triage
难度 2/5 1-3 小时 新手友好度 86/100
dsx-ai-factory/health-validation#368 ·
维护者通常 2 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 83/100
Tripstack-Corp/spyc#1352 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 72/100
vllm-project/vllm#70030 ·
维护者通常 1 天内回复
-
enhancement good first issue
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
help wanted small extra
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复