无法访问 EC2 实例上的产品广告 API

发布于 2024-11-28 11:53:06 字数 1501 浏览 3 评论 0原文

我部署了一个微型 EC2 Windows 实例,并尝试访问 Amazon Product Advertising API。如果我使用的是 EC2 实例,URL 是否有不同?在 ec2 网络之外的我的电脑上也可以使用相同的 url。我有互联网连接并且可以访问 http://ecs.amazonaws.com

[ERROR] 2011-08-09 17:36:41,956 could not retrieve batch
java.io.IOException: Server returned HTTP response code: 400 for URL: http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=[key]&Condition=New&IdType=UPC&IncludeReviewsSummary=False&ItemId=[parameters]&Service=AWSECommerceService&Timestamp=2011-08-09T16%3A36%3A41Z&Version=2010-11-01&Signature=c8MBHhPCa3BF96YTl8xEbYnw0YQvt2wsYAU%2BWl0apFw%3D
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at 
    at java.lang.Thread.run(Unknown Source)

I deployed a micro EC2 Windows instance and I'm trying to get through to the Amazon Product Advertising API. Is there a difference url if I am on a EC2 instance? The same url's work on my pc outside the ec2 network. I have an internet connection and can access http://ecs.amazonaws.com

[ERROR] 2011-08-09 17:36:41,956 could not retrieve batch
java.io.IOException: Server returned HTTP response code: 400 for URL: http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=[key]&Condition=New&IdType=UPC&IncludeReviewsSummary=False&ItemId=[parameters]&Service=AWSECommerceService&Timestamp=2011-08-09T16%3A36%3A41Z&Version=2010-11-01&Signature=c8MBHhPCa3BF96YTl8xEbYnw0YQvt2wsYAU%2BWl0apFw%3D
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
    at com.sun.org.apache.xerces.internal.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at 
    at java.lang.Thread.run(Unknown Source)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文