amazon

Why is my terminal returning this s3 error?

╄→尐↘猪︶ㄣ 提交于 2019-11-28 05:30:51
问题 Here's the error I keep receiving: A client error (AccessDenied) occurred when calling the ListObjects operation: Access Denied I've triple-checked my credentials and googled this error to my wits' end. I edited my bucket policy to add an s3:ListBucket action, but to no avail. When I do so, it just returns a similar message: A client error (AccessDenied) occurred when calling the ListBuckets operation: Access Denied Thoughts? This is also my first time creating an s3 bucket so it's quite

AmazonClientException: Data read has a different length than the expected

有些话、适合烂在心里 提交于 2019-11-28 04:20:56
问题 1.When I am using AmazonS3Client to upload file on amazon s3 file store. 2.when I am trying to upload multiple files at a time it gives exceptions: but same file multiple threads. I tried out client configure such as : 1.connectionTimeout=50000 in ms 2.maxConnections=500 3.socketTimeout=50000 in ms Exception stacktrace: com.amazonaws.AmazonClientException: Data read has a different length than the expected: dataLength=8192; expectedLength=79352; includeSkipped=false; in.getClass()=class com

How to properly sign a GET request to Amazon's ItemLookup using client-side JavaScript only?

江枫思渺然 提交于 2019-11-28 01:13:56
问题 Here's what I have so far: function sha256(stringToSign, secretKey) { return CryptoJS.HmacSHA256(stringToSign, secretKey); } function getAmazonItemInfo(barcode) { var parameters = "Service=AWSECommerceService&" + "AWSAccessKeyId=" + appSettings.amazon.accessKey + "&" + "Operation=ItemLookup&" + "ItemId=" + barcode + "&Timestamp=" + Date.now().toString(); var stringToSign = "GET\n" + "webservices.amazon.com\n" + "/onca/xml\n" + parameters; var signature = "&Signature=" + encodeURIComponent

fs.writeFile in a promise, asynchronous-synchronous stuff

江枫思渺然 提交于 2019-11-27 19:17:55
I need some help with my code. I'm new at Node.js and have a lot of trouble with it. What I'm trying to do: 1) Fetch a .txt with Amazon products (ASINs) ; 2) Fetch all products using the amazon-product-api package; 3) Save each product in a .json file. My code is not working. I think I messed up with this asynchronous-synchronous stuff - help me! var amazon = require('amazon-product-api'); var fs = require('fs'); var client = amazon.createClient({ awsId: "XXX", awsSecret: "XXX", awsTag: "888" }); var array = fs.readFileSync('./test.txt').toString().split('\n'); for (var i = 1; i < array.length

How to support Amazon and Android Market (Google Play) links in same APK [duplicate]

我的未来我决定 提交于 2019-11-27 18:11:30
Possible Duplicate: Supporting Amazon and Android market links inside application I was wondering if and how you could differentiate between an Amazon App Store installed app and one installed from the Market. For example, say I have my app called "Example App", and I want to develop for Amazon and the Market. In the app I have links to rate Example App. I also have a link to buy Example App Pro. This poses a problem because Amazon will not release my app if it links to a different App store. This requires me to make 2 APK files, which is a pain. It only takes about 30 seconds extra to export

lxml runtime error: Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0

你。 提交于 2019-11-27 17:50:14
I have a perplexing problem. I have used mac version 10.9, anaconda 3.4.1, python 2.7.6. Developing web application with python-amazon-product-api. i have overcome an obstacle about installing lxml, referencing clang error: unknown argument: '-mno-fused-madd' (python package installation failure) . but another runtime error happened. Here is the output from webbrowser. Exception Type: ImportError Exception Value: dlopen(/Users/User_Name/Documents/App_Name/lib/python2.7/site-packages/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib Referenced from: /Users/User_Name/Documents/App_Name/lib

Can PackageManager.getInstallerPackageName() tell me that my app was installed from Amazon app store?

隐身守侯 提交于 2019-11-27 12:48:50
I plan on publishing my app on Amazon app store as well as Google Play, and have some things in my app that need to behave slightly different depending on whether the app was installed from Amazon app store or not. If I understood the PackageManager.getInstallerPackageName(String packageName) method correctly, it tells me the name of the application that installed my app. Right? If so, does anyone know what the value returned by this method would be if my app was installed from Amazon app store? If not, does anyone know any other methods I can use to determine whether my app was installed from

Find key/value pairs deep inside a hash containing an arbitrary number of nested hashes and arrays

不羁岁月 提交于 2019-11-27 12:37:32
A web service is returning a hash that contains an unknown number of nested hashes, some of which contain an array, which in turn contains an unknown number of nested hashes. Some of the keys are not unique -- i.e. are present in more than one of the nested hashes. However, all the keys that I actually care about are all unique. Is there someway I can give a key to the top-level hash, and get back it's value even if the key-value pair is buried deep in this morass? (The web service is Amazon Product Advertising API, which slightly varies the structure of the results that it gives depending on

Amazon EC2 Elastic Load Balancer: Does its IP ever Change?

↘锁芯ラ 提交于 2019-11-27 11:07:43
问题 Does the ELB's IP Ever Change once setup, or will it always access instances from the same location during its lifetime no matter what might be going on with it behind the scenes at Amazon? 回答1: ELB's IP address keeps changing. You should instead use the DNS name provided to you. http://developer.amazonwebservices.com/connect/thread.jspa?threadID=32280 回答2: The short answer: Yes, ELB's IP addresses (both the ones that are publicly distributed to clients of your service, and the internal IPs

Amazon Product Advertising API Signature in iOS

别说谁变了你拦得住时间么 提交于 2019-11-27 10:58:09
问题 I am trying to access Amazon's Product Advertising API in my iOS application. Creating the signature seems to be the tough part. On this page: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/rest-signature.html It says to "Calculate an RFC 2104-compliant HMAC with the SHA256 hash algorithm". Amazon also provides a java class to do this for you: http://docs.amazonwebservices.com/AWSECommerceService/latest/DG/AuthJavaSampleSig2.html Does anybody know how I can do this in