I have a local Drupal installation on my home machine to test. After a fresh install of the API module, I'm attempting to configure the module with my CEO API key. I enter the Key ID and Verification Code with the pre-configured access mask that the module requires.

I check the "Enable EVE API" checkbox and click "Update".

The settings page returns the following error: "There was an error with the API."

I've tried changing the key type from Character to Corporation. I've tried selecting All Characters or just the CEO character. I've tried a full access mask pulling all available information. Nothing seems to affect this error.

No other portions of the module have been enabled (Jabber, TS, etc.)

What am I missing?

Comments

0mni’s picture

It must be a Corporate Director/CEO API Key with all API options selected and no expiry.

VISTAWebsite’s picture

I'm still getting the error. :\

Character: The CEO of my corp (me)
Type: Character
Access Mask: 268435455 (all boxes selected)
No Expiry: Checked

0mni’s picture

Type: Corporation

VISTAWebsite’s picture

Changed the type to Corporation. Still getting the error.

VISTAWebsite’s picture

If it helps at all, this message keeps showing up in my logs:

EVE API returned an error with the HTTP request. (APIKeyInfo?keyID=2878841&vCode=kbrmblss0eogPQtc2dN4FbAPQUWLqrafj5zW0DSwjIYrJeyFRs4kxRe2TLc2JLES) Error: String could not be parsed as XML

0mni’s picture

The error is telling u it had an issue parsing the xml returned from eve online. How often does it show up ?

You can see what EVE Online would return by sending this request in your browser:

https://api.eveonline.com/account/APIKeyInfo.xml.aspx?keyID=YOURKEYID&vC...

PS change your API Key you don't want to post this so anyone can see your API.

VISTAWebsite’s picture

I deleted that API key so no one else could check it. No worries. I just wanted to provide the error exactly as it appeared. :)

The error message appears on the log every time I try to submit my API key in the module. I checked the key against the link you provided and EVE returns the appropriate information about my character and corporation.

Could it have anything to do with the fact that I'm running my drupal install locally and not on an actual server?

0mni’s picture

It's possible u don't have the your php setup correctly, make sure u have XML installed.

EvoSpyder’s picture

Having the same issue with my new site.

0mni’s picture

@EvoSpyder, info is appreaciated. When does it happen, what error are you getting, what type of server are you running on, test server, or production server ? Do you have CURL/XML php modules installed ?

6run0’s picture

I have the same problem. I fix it.

6run0’s picture

Status: Active » Reviewed & tested by the community
0mni’s picture

Status: Reviewed & tested by the community » Closed (won't fix)