我的终点是:
{
"swagger": "2.0",
"info": {
"version": "2019-01-14T16:21:53Z",
"title": "audio-builder"
},
"host": "ij6dyda1c4.execute-api.eu-west-1.amazonaws.com",
"basePath": "/test",
"schemes": [
"https"
],
"paths": {
"/": {
"post": {
"consumes": [
"application/json",
"application/x-www-form-urlencoded"
],
"produces": [
"audio/ogg"
],
"responses": {
"200": {
"description": "200 response",
"schema": {
"$ref": "#/definitions/Empty"
},
"headers": {
"Access-Control-Allow-Origin": {
"type": "string"
},
"Content-Type": {
"type": "string"
},
"x-amazon-apigateway-binary-media-types": {
"type": "string"
}
}
}
}
}
}
},
"definitions": {
"Empty": {
"type": "object",
"title": "Empty Schema"
}
}
}
当我使用不正确的Accept
标头卷曲该端点时,我得到的是base64答案,但是当我设置正确的Accept: audio/ogg
时,我在CloudWatch中得到500条错误消息:Execution failed due to configuration error: Unable to transform response
这个问题与我的previous one有关。