Posts

Showing posts from March 28, 2019

Amazon MWS API request error

Image
2 I am having some trouble with mws-sdk-promises library(https://www.npmjs.com/package/mws-sdk-promises). I am getting this error. I've double checked all the plug in infos are correct. I haven no idea why I am getting this block. How can I fix this? -------- {"ErrorResponse":{"$":{"xmlns":"https://mws.amazonservices.com/Orders/2013-09-01"},"Error":[{"Type":["Sender"],"Code":["SignatureDoesNotMatch"],"Message":["The request signature we calculated does not match the signature you provided. Check your AWS Secret Access Key and signing method. Consult the service documentation for details."]}],"RequestID":["e262570a-f493-4d3b-9183-88e528225599"]}} -------- var express = require

How can I send and image with Loopj Assync Http Client?

Image
0 I'm trying to upload an image using Loopj Async Http Client, adding the image to the parameters as follows: params.put("123", new File(partesendaverde.imagen1), "image/jpg"); client.post(context, URL, params, handler); The server seems to be not responding to the request, and the onRetry() method of the client is called and then onFaliure() : cz.msebera.android.httpclient.client.ClientProtocolException It works fine on postman with this parameters: PUT /example Host: localhost:8080 Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW cache-control: no-cache Postman-Token: 483b40ee-e2e9-4b0d-a7eb-6ea361d204fc Content-Disposition: form-data; name="imagen1"; filename="C:UsersClopmaDesktopsss.jpg ------WebKitFormBoundary7MA4YW