Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I change the values defined in the request header? #23

Open
jtara1 opened this issue Apr 17, 2018 · 2 comments
Open

Can I change the values defined in the request header? #23

jtara1 opened this issue Apr 17, 2018 · 2 comments

Comments

@jtara1
Copy link

jtara1 commented Apr 17, 2018

So I'm calling GetFeedSubmissionResult from mws api, but they're giving me this unreadable response.

https://i.imgur.com/64fUmIB.png

in header of response:
content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8

I'm still trying to figure out how to fix this, but my guess is to add accept: application/xml to the request header. Is there something in this lib that will allow me to do this or should I just try to make a fetch or http request myself?

@jtara1
Copy link
Author

jtara1 commented Apr 17, 2018

I'm looking into using the stream returned from request function in the method call in mws.js to decode it as a xlsx workbook and save it

https://sellercentral.amazon.com/forums/t/getfeedsubmissionresult-response-is-encrypted/397019/6

@bhushankummar
Copy link

@jtara1 Here is the workaround available. https://www.npmjs.com/package/amazon-mws

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants