Internal error when hitting endpoint
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, javascript, postgresql, webpack
Hướng nghiên cứu
Bắt đầu với postgraphileOptions.js và stack trace của CloudWatch, đặc biệt là các bindings được đóng gói cùng các module libpq và pg-native. Tái hiện request Lambda được cấu hình thủ công và xác định lý do dependency PostgreSQL native nhận một giá trị undefined; hoàn tất khi endpoint gateway phản hồi mà không có lỗi nội bộ này.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- PLpgSQL
- Star
- 144
- Fork
- 19
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của graphile/postgraphile-lambda-example
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
graphile/postgraphile-lambda-example#33 · 1 bình luận ·
-
enhancement help wanted
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
graphile/postgraphile-lambda-example#16 · 15 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 55/100
graphile/postgraphile-lambda-example#13 · 1 bình luận · 1 reaction ·
Tất cả issue của graphile/postgraphile-lambda-example
Issue tương tự
-
bug needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
dsx-ai-factory/health-validation#368 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Tripstack-Corp/spyc#1352 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
vllm-project/vllm#70030 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
help wanted small extra
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày