无法访问 EC2 实例上的产品广告 API
我部署了一个微型 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论