WordPress.org

Ready to get started?Download WordPress

Forums

WordPress-Amazon-Associate
[resolved] Keys InValid since amazon API update (9 posts)

  1. Mike Stop Continues
    Member
    Posted 2 years ago #

    Amazon made some changes to their API recently. I would imagine this is to blame, as my keys were valid up until just recently. I checked my account and everything is fine. I tried a new public/private key pair and they didn't validate either.

    Help?

    Thanks!

    http://wordpress.org/extend/plugins/wordpress-amazon-associate/

  2. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, I've done some initial review and the issue does not appear to be related to the API. As i see the same version of the plugin working across multiple sites but not on some. Upon review it appears that in most cases the issue is that the server time is off causing the request to error out with RequestExpired exception from Amazon. I am working on a fix to check for this error and resubmit the request based on lookup of gmt time from a time server which is working but I need to do some follow up to make sure there is not going to be excessive calls to the Time Servers which would cause a denial of service to future requests for the time from your host and would end you back in the same situation currently being faced.

    If you have access to your server I would suggest verifying the gmtdate time returns the current time correctly. I noticed on my web host it is off by 20 minutes.

    Hopefully further updates soon,

    Matthew

  3. Mike Stop Continues
    Member
    Posted 2 years ago #

    Hi Matt,

    Unfortunately, gmdate(); indicates the correct time. Is there anything else I can try?

    Thanks for your help!

  4. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Mike,

    I'm going to add additional error display to the validation screen in the upcoming version so we can see the exact reason your validation is failing.

    Working on support for locales and looking to have it available by end of week.

  5. Mike Stop Continues
    Member
    Posted 2 years ago #

    Thanks Matt! That's excellent news.

  6. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Mike Version 1.8.0 has been released. After updating let me know the detailed error you are receiving so that we can resolve it.

  7. Mike Stop Continues
    Member
    Posted 2 years ago #

    Matt, I updated to the new version.

    I distinctly remember getting an InValid message (on account of the capitals) when I was working with the plugin last month, but when I tried after updating, a js-error prevented getting any validation notification at all. So I tried on a test site, and my keys validate. I can only assume that they're also validating on my regular sites now too.

    Would any of the changes you made account for my (presumably) solved problem? In any case, thank you. Here's the JS error:

    admin.php:700
    Uncaught TypeError: Cannot read property '0' of undefined
    jQuery.ajax.success
    admin.php:700
    f.Callbacks.n
    load-scripts.php:3
    f.Callbacks.o.fireWith
    load-scripts.php:3
    w
    load-scripts.php:5
    f.support.ajax.f.ajaxTransport.send.d
    load-scripts.php:5
  8. Matthew Denton
    Member
    Plugin Author

    Posted 2 years ago #

    Mike, what is your website? I can take a quick look and see if i can identify why you are getting the js error. if you don't want to post it here email it to me at matt@mdbitz.com

  9. Matthew Denton
    Member
    Plugin Author

    Posted 1 year ago #

    Marking thread as resolved as keys are now validating.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic