The Movie Database Support

hi im still new to programing so bare with me pls, so everything was working just fine until one day i kept receing invalid api key stauts code 7, i did try it on postman with the same api key and it works but when i try to fecth the api on next js it says the status code 7 dont know if im hitting the rate limit or idk.I know this isnt the best place to ask for tips for like framwokrs and stuff but might as well pls and thank you.

1 reply (on page 1 of 1)

Jump to last post

Hi @alex-nut82, if your key works in one place and not another, it means there is something wrong with the way you are using it in the second place. You don't have a rate limit problem because that would result in a different status code.

Without more information it is impossible for anyone to determine what is wrong. If you are trying to use the same api URL in both places, then you likely have an error in your code in the second place. My only thought is to try and print (console.log) the URL just before the fetch statement so you can make sure any variables values are what you think they are. For example, if the api key was a variable and was null, that would result in the error you are seeing.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

लॉगिन