Amazon web services 无法在AWS API网关中接收来自易趣的HTTP通知
我正在尝试将配置为向我创建的AWS API网关发送通知。我已经确认,API网关可以使用从多个源和IP发送的cURL命令接收POST HTTP请求,而无需进行身份验证,因此这不是问题所在 以下是我使用的设置:Amazon web services 无法在AWS API网关中接收来自易趣的HTTP通知,amazon-web-services,aws-api-gateway,ebay-api,Amazon Web Services,Aws Api Gateway,Ebay Api,我正在尝试将配置为向我创建的AWS API网关发送通知。我已经确认,API网关可以使用从多个源和IP发送的cURL命令接收POST HTTP请求,而无需进行身份验证,因此这不是问题所在 以下是我使用的设置: 经过几天的观察,从eBay的通知发送到AWS的API网关的请求,我准备说,将端点类型更改为“区域”解决了这个问题。我不能肯定为什么,但我可以肯定地说,我收到了我期望收到的所有事件 如果有人有关于这一改变为何有效的进一步信息,我洗耳恭听。:-) 编辑 根据注释中的请求,以下是serverle
经过几天的观察,从eBay的通知发送到AWS的API网关的请求,我准备说,将端点类型更改为“区域”解决了这个问题。我不能肯定为什么,但我可以肯定地说,我收到了我期望收到的所有事件
如果有人有关于这一改变为何有效的进一步信息,我洗耳恭听。:-)
编辑
根据注释中的请求,以下是serverless.yml
文件:
服务:派对灯光
插件:
-无服务器脱机
供应商:
名称:aws
端点类型:区域
运行时间:nodejs8.10
阶段:发展
地区:美国东部1
记忆化:128
IAM声明:
-效果:“允许”
行动:
-“物联网:”
资源:
- "*"
-效果:“允许”
行动:
-'s3:PutObject'
资源:
-'arn:aws:s3::{MY_s3_BUCKET}/*'
功能:
聚会:
handler.party
活动:
-http:
路径:党
方法:邮寄
据我所知,eBay API似乎早在2015年就转移到了TLS 1.2。有兴趣了解您在进一步实验中发现的内容。感谢您提供此信息。您可以导出您的Amazon API网关配置吗?我想尝试一下。
<?xml version="1.0" encoding="UTF-8"?>
<SetNotificationPreferencesRequest xmlns="urn:ebay:apis:eBLBaseComponents">
<!-- Use the Developer portal or the <ApplicationDeliveryPreferences> container to set the Application delivery settings -->
<RequesterCredentials>
<eBayAuthToken>{token_here}</eBayAuthToken>
</RequesterCredentials>
<ErrorLanguage>en_US</ErrorLanguage>
<WarningLevel>High</WarningLevel>
<ApplicationDeliveryPreferences>
<AlertEmail>mailto://{my_email_here}</AlertEmail>
<AlertEnable>Enable</AlertEnable>
<ApplicationEnable>Enable</ApplicationEnable>
<ApplicationURL>{api_gateway_url_here}</ApplicationURL>
<DeviceType>Platform</DeviceType>
<DeliveryURLDetails>
<DeliveryURLName>Email</DeliveryURLName>
<DeliveryURL>mailto://{my_email_here}</DeliveryURL>
<Status>Enable</Status>
</DeliveryURLDetails>
<DeliveryURLDetails>
<DeliveryURLName>Gateway</DeliveryURLName>
<DeliveryURL>{api_gateway_url_here}</DeliveryURL>
<Status>Enable</Status>
</DeliveryURLDetails>
</ApplicationDeliveryPreferences>
<DeliveryURLName>Email,Gateway</DeliveryURLName>
<UserDeliveryPreferenceArray>
<NotificationEnable>
<EventType>FixedPriceTransaction</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
<NotificationEnable>
<EventType>ItemSold</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
<NotificationEnable>
<EventType>ItemListed</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
<NotificationEnable>
<EventType>ItemRevised</EventType>
<EventEnable>Enable</EventEnable>
</NotificationEnable>
</UserDeliveryPreferenceArray>
</SetNotificationPreferencesRequest>