CREATE_FAILED: ApiGatewayMethodActionPost (AWS::ApiGateway::Method) - Invalid type for parameter selectionPattern
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- aws, javascript
Hướng nghiên cứu
Bắt đầu với cấu hình serverless.yml trong báo cáo và so sánh cấu hình đó với mã được liên kết của serverless-step-functions lib/deploy/events/apiGateway/methods.js tại dòng 199. Tái hiện việc triển khai trên LocalStack, theo dõi cách selectionPattern được tạo và xác nhận bản sửa bằng cách kiểm tra rằng phương thức API Gateway được triển khai mà không gặp lỗi kiểu tham số.
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 deploy my serverless app on local stack but Invalid type parameter for selectionPattern error is being thrown. Below is the complete error and serverless.yml
Error:
ApiGatewayMethodActionPost (Parameter validation failed:; Invalid type for parameter selectionPattern, value: 200, type: <class 'int'>, valid types: <class 'str'>)
serverless.yml
events:
- http:
path: /action
method: POST
iamRole: arn:aws:iam::xxxxxxxxxxxx:role/someRole
action: StartSyncExecution
request:
template:
application/json: |
{
"stateMachineArn":"arn:aws:states:'us-west-2':xxxxxxxxxxxx:stateMachine:someMachine",
"input": "$util.escapeJavaScript($input.json('$'))"
}
response:
template:
application/json: |
$input.path('$.output')
I was checking serverless-step-function code where selectionPattern is defined as integer and not string. Following is the link to the code: code
- Ngôn ngữ chính
- JavaScript
- Star
- 542
- Fork
- 92
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
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 localstack/serverless-localstack
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 25/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
Support for Python 3.13 Lambdas Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Serverless deploy to LocalStack fails: “Invalid character in header content [authorization]” Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
Static API Gateway V1 Endpoints Đang mởaws:apigateway status: backlog
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
localstack/serverless-localstack#270 · 3 reaction ·
Tất cả issue của localstack/serverless-localstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Theme loads third-party resources on every page (jsdelivr web font, cdnjs Font Awesome) – GDPR Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
nightscout/nocturne#1414 ·
-
bug v2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
modelcontextprotocol/inspector#2458 · 1 bình luận ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
carbon-design-system/ibm-products#9907 ·