Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API issues #316

Open
ufoptg opened this issue Jul 11, 2024 · 10 comments
Open

API issues #316

ufoptg opened this issue Jul 11, 2024 · 10 comments

Comments

@ufoptg
Copy link

ufoptg commented Jul 11, 2024

Currently im getting the response

{"Response":"False","Error":"Invalid API key!"}

This is happening with my pateron API key and when i tried to create a new API key i still get the same issue...

@gouravp11
Copy link

Happening with a non patreon too

@jozaco
Copy link

jozaco commented Jul 17, 2024

Same here, with a free account. After validating the apikey, the requests sent return invalid api key.

@zlemenio
Copy link

same here as well.

@izkreny
Copy link

izkreny commented Jul 19, 2024

It is working for me (Croatia, Europe), just got my API key yesterday. 😕

@EllKyGr
Copy link

EllKyGr commented Jul 23, 2024

Same, but worked when I wrote it like this:
http://www.omdbapi.com/?apikey=your_API_key

@ufoptg
Copy link
Author

ufoptg commented Jul 26, 2024

it has started to come better :) dunno what happened... I think we just need some docs on using the API i had to change how it was calling the api

@MayankCh0udhary
Copy link

MayankCh0udhary commented Oct 22, 2024

@omdbapi
Anybody will give any solution for this error in API???:
{"Response":"False","Error":"Invalid API key!"}

@MayankCh0udhary
Copy link

If anyone still having same issue the do this steps:

  1. Click on the URL to activate your key which is in the your API key email.
  2. Now, you can use the API key.

@ufoptg
Copy link
Author

ufoptg commented Oct 25, 2024

Get a new key

@BatCountry
Copy link

BatCountry commented Dec 20, 2024

The link they give you in the confirmation email has "apikey" as the last URL argument, and I've verified I can turn the problem on and off by ensuring the end of the string isn't the last character of your key, or that the key isn't the last token:

{"Response":"False","Error":"Invalid API key!"}
https://www.omdbapi.com/?i=tt3896198&apikey=madeupkey

{"Title":"Guardians of the Galaxy Vol. 2","Year":"2017",...}
https://www.omdbapi.com/?i=tt3896198&apikey=madeupkey&

{"Title":"Guardians of the Galaxy Vol. 2","Year":"2017",...}
https://www.omdbapi.com/?apikey=madeupkey&i=tt3896198

It's not simply dropping the last character of the key:

{"Response":"False","Error":"Invalid API key!"}
https://www.omdbapi.com/?i=tt3896198&apikey=madeupkeyY

So it's probably an issue with how the URL parameters are being tokenized, maybe by the underlying server wrapper?

(edit: this happens in both Firefox and Google Chrome, but doesn't happen with curl, so it may be how the GET request is structured by browsers causing the issue, or maybe the presence of some header)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants