TheLordBaski / Amazon-mws-nodejs-sdk

Apache License 2.0
12 stars 13 forks source link

Reports are not working with curent AWS api #4

Closed hiteshj closed 8 years ago

hiteshj commented 8 years ago

Hello Dear,

Please check your reports services which is not working and throwing error below:

Sender InvalidAddress Invalid Section name or version provided - 2009-01-01/2009-01-01 2ce68b8a-4fc6-4371-9ce4-bcff8e37ba7b
hiteshj commented 8 years ago

If i change the path path: 'endpoint[params.type].type + endpoint[params.type].version + "?" + body' TO 'path: endpoint[params.type].type + "?" + body'

Then error is : SignatureDoesNotMatch

TheLordBaski commented 8 years ago

I will look at it soon. My pc crashed today so I need to reinstall everything.

But thanks for report.

TheLordBaski commented 8 years ago

Hi @hiteshj , sorry for late reply. Can you give me whole path of request ?

jvgeee commented 8 years ago

@hiteshj @TheLordBaski Any update on this?

jvgeee commented 8 years ago

@TheLordBaski I'm getting the same error, ym path is:

mws.reports.RequestReport(config, { ReportType: '_GET_FLAT_FILE_OPEN_LISTINGS_DATA_'}, function(err, data){
          if(err){
            console.log(err);
            res.status(500).send(err);
          }else{
            console.log(data);
          }
        })

My response is:

{ xmlns: 'https://mws.amazonservices.com/',
  Error: 
   { Type: 'Sender',
     Code: 'InvalidAddress',
     Message: 'Invalid Section name or version provided - 2009-01-01/2009-01-01' },
  RequestID: '6ce58f91-69c7-4a4f-ad09-d0a49b44ad90' }
jvgeee commented 8 years ago

Ok, I fixed it. The solution is to change mws.js line 16 to:

var url = "mws.amazonservices.com";

Then, from line 34:

'Reports': {
        'type': '/Reports/',
        'version': '2009-01-01'
    }
TheLordBaski commented 8 years ago

Hi man, I can' update and test this because I have no mws tokens . I can left you whole repo if you want :)

S pozdravem / Best regards,

Bc. Jakub GabčoNodeJS vývojář / NodeJS developer------------------------------------------------------------------------------ Tel.: +421 918 776 982 <%2B420%C2%A0734%C2%A0622%20430>

Email: _jakub.gabco_@ki-wi.cz oldrich.esner@ki-wi.cz

Ki-Wi Digital s.r.o. Lidická 27, 602 00 Brno Czech Republic www.ki-wi.cz

2016-02-04 19:12 GMT+01:00 jascination notifications@github.com:

Ok, I fixed it. The solution is to change mws.js line 16 to:

var url = "mws.amazonservices.com";

Then, from line 34:

'Reports': { 'type': '/Reports/', 'version': '2009-01-01' }

— Reply to this email directly or view it on GitHub https://github.com/TheLordBaski/Amazon-mws-nodejs-sdk/issues/4#issuecomment-179975659 .