Getting 'The AWS Access Key Id you provided does not exist in our records' error with Amazon MWS

十年热恋 提交于 2019-12-24 16:12:57

问题


I upgraded from one version of Amazon MWS (marketplace web service) version

        https://mws.amazonservices.com/Orders/2011-01-01

to

        https://mws.amazonservices.com/Orders/2013-09-01

and started getting the following error:

The AWS Access Key Id you provided does not exist in our records.

The keys are all correct and double checked.


回答1:


Someone at Amazon decided to change the order of parameters for some reason...

IMarketplaceWebServiceOrders service = new MarketplaceWebServiceOrdersClient(

                applicationName, 
                applicationVersion, 
                accessKeyId, 
                secretAccessKey, 
                config);

to

MarketplaceWebServiceOrders service = new MarketplaceWebServiceOrdersClient(

                accessKeyId, 
                secretAccessKey, 
                applicationName, 
                applicationVersion, 
                config);

So obviously it compiles but fails.

Just switch them and it will work. Hopefully they didn't switch anything else important like this in the API.



来源:https://stackoverflow.com/questions/22278327/getting-the-aws-access-key-id-you-provided-does-not-exist-in-our-records-error

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!