pybliometrics icon indicating copy to clipboard operation
pybliometrics copied to clipboard

Invalid API key

Open raffaem opened this issue 1 year ago • 3 comments
trafficstars

It looks like pybliometrics is not able to rotate between API keys anymore.

I receive an "invalid API key" error, but if I edit the config file and append the first API key to the end of the list, it works again (thus using what was the second API key)

raffaem avatar Jun 12 '24 11:06 raffaem

Scopus is trowing a 401 error for:

{
    "error-response": {
        "error-code": "APIKEY_INVALID",
        "error-message": "The provided apiKey is invalid.",
    }
}

The current code assumes that an invalid api key throws a 429.

nils-herrmann avatar Jun 13 '24 09:06 nils-herrmann

That happens when a key is depleted? @raffaem is this also what you get when you use your depleted key?

Michael-E-Rose avatar Jun 13 '24 10:06 Michael-E-Rose

I have tested this with my keys on the Abstract Retrieval API. The automatic key swap works fine and as expected. How is it going for your @raffaem ?

Michael-E-Rose avatar Jun 23 '24 11:06 Michael-E-Rose