API is invalid

  • Author
    Posts
  • #94

    lysergic
    Member

    Hi there,

    I’ve got my API-key from wordpress.com and I want to use it on my blog for Akismet, but when I enter my API-key it says it is invalid.

    Any help on this?

    Thank you!

    #439

    lysergic
    Member

    Still no idea on this one? (thanks)

    #456

    treediva
    Member

    I’m having the same problem. I have a blog here and one on my domain name site. I just upgraded to WP2.0 over there. It says I need an API key from wordpress.com. I’ve got one from my blog here. I’ve tried repeatedly to use it and get the same API invalid error message that you do. :-(

    Since this is common, I wish someone would tell us what to do about it. :-(

    #461

    There’ve been a couple of things posted to do/watch for on the .org support forum: wait a day or so to try it again; and make sure you are typing the api key in, not copying it from an email, an editor like notepad or wordpad, or a web page.

    #463

    matt
    Staff

    Most people who report this problem have an issue with their host. Make sure that your host allows outgoing HTTP requests to rest.akismet.com and it should be fine.

    #467

    treediva
    Member

    Well, duh! I was copy and pasting it because it’s such a long jumble of characters. Typed it slowly and carefully and voila! Plugin activated. A ton of spam eliminated already! Thanks a million for this plugin! (and the tip on how to activate the key!) :-)

    #468

    Yup. That’s probably the single biggest stumbling block…. it’s incredible how much dreck copy n paste will introduce!

    #470

    lysergic
    Member

    I’m sorry to say that I’m still having problems even while typing mine in manually :/

    #472

    Check with your host as advised by Matt then…. good luck!

    #491

    lysergic
    Member

    I’m running it on my own server, and no hosts are blocked there. I can communicate with wordpress.com in any other way, and I’m sitting in my office, so…

    I also tried to empty the saved formdata in Firefox, and I tried to enter the code manually in FF and IE, no luck whatsoever… :/

    #492

    lysergic
    Member

    Can anyone tell me which server the API-key is checked against?

    It was my firewall that blocked access.

    Is it only to allow wordpress.com or should I add any other? (thank you)

    And oh, what ports should be opened to make authorization towards the wordpress.com API-system work?

    #516

    lysergic
    Member

    I added the IP for wordpress.com and http://www.wordpress.com (same one) to my firewall’s “allowed hosts”, yet no luck with getting through to authenticate my api-key.

    What other hosts or which ports should I add to the safe / open-list?

    TIA.

    EDIT: I’ve done some tracing in my firewall logs, and the IP is “72.36.160.130”. For anyone having the same problem, allow this IP and you’ll be fine.

    #517

    matt
    Staff

    If you’re using the API key, you’re probably trying to get to Akismet.com. You can whitelist that specific IP, but I can’t promise akismet.com will be at that IP address forever.

    #519

    lysergic
    Member

    Thanks for the heads up on this one.

    Note: I’ve installed a new firewall solution on my end, I’m now using Firestarter and it’s working just fine. No problems with the authentication of the API-key etc.

    Though, I hope that this thread will help anyone that’s experiencing similar problems with their API-key.

    #597

    burnetts
    Member

    Hi everyone. I’ve been experiencing the same problems with the Akismet plugin activation that other people here have described. Unfortunately, it appears to be neither a firewall issue nor an incorrect API key issue.

    I’ve tried both copy-and-paste of the API key and carefully typing it in, both to no avail. I still get ‘invalid key.’

    I’ve also checked with my hosting provider, and he tells me that there’s no restriction on outgoing HTTP requests, so getting to rest.akismet.com shouldn’t be an issue. I checked, and I am able to SSH in to the server and connect to akismet.com and rest.akismet.com without any problems.

    Any other ideas as to what the problem might be? Any help would be appreciated.

    #598

    drmike
    Member

    Any other ideas as to what the problem might be? Any help would be appreciated.

    I don’t know what Control Panel you’re using for your host nor what level of access you have. Both CPanel and Direct Admin (What I use on my service) have a method of doing a traceroute from the box from the control panel. See if you can reach rest.akismet.com from the box that your site sits on.

    -drmike

    Aside: rest.akismet.com? I wonder some times what names we give our computers. I just wound up using Greek characters myself….

    #599

    burnetts
    Member

    drmike wrote:

    See if you can reach rest.akismet.com from the box that your site sits on.

    Hmm. As noted earlier, I am able to SSH into the box and use lynx to get to akismet.com and rest.akismet.com. So the firewall isn’t stopping me.

    However, the traceroute from cPanel doesn’t work. I’m trying to track this down. I’ll keep you posted.

    #600

    burnetts
    Member

    Alright. Looking at the akismet.php file, I find where the URL gets constructed. Through some not-very-creative use of echo statements, I see that it’s making:

    http://rest.akismet.com/1.1/verify-key?key=xxxxxxxxxxxx&blog=http://my.address.here

    (I’ve replaced my key with xxxxxxxxxxxx)

    When I check this link in a browser, I see that I’m getting ‘invalid’ back.

    Any other ideas? I’m thinking it’s time to contact a dev.

    #601

    matt
    Staff

    If you’re the same person who went through Akismet support earlier, I think your prob has been fixed.

    #679

    vitya
    Member

    I’m having the same problem. Invalid key. I own my own server and there is no firewall.

The topic ‘API is invalid’ is closed to new replies.