The Movie Database Support

i was trying NETFLIX clone by sonny sangha video 2 timing: 1:45:00 there i was supposed to get the background image automatically by the tmdb site itself , i don't know whether my code had some problem but i followed along the video and got this as the console result

Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers. redux.js:426 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
https://api/themoviedb.org/3/discover/tv?api_key=THE_KEY&with_networks=213.
(Reason: CORS request did not succeed). Status code: (null). 2 Uncaught (in promise) Object { message: "Network Error", name: "AxiosError", code: "ERR_NETWORK", config: {…}, request: XMLHttpRequest, response: XMLHttpRequest, stack: "" } Banner.js:18 Uncaught (in promise) Object { message: "Network Error", name: "AxiosError", code: "ERR_NETWORK", config: {…}, request: XMLHttpRequest, response: XMLHttpRequest, stack: "" } Banner.js:18 Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at
https://api/themoviedb.org/3/discover/tv?api_key=THE_KEY&with_networks=213.
(Reason: CORS request did not succeed). Status code: (null).

Uncaught (in promise) Object { message: "Network Error", name: "AxiosError", code: "ERR_NETWORK", config: {…}, request: XMLHttpRequest, response: XMLHttpRequest, stack: "" } ​ code: "ERR_NETWORK" ​ config: Object { timeout: 0, xsrfCookieName: "XSRF-TOKEN", xsrfHeaderName: "X-XSRF-TOKEN", … } ​ message: "Network Error" ​ name: "AxiosError" ​ request: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … } ​ response: XMLHttpRequest { readyState: 4, timeout: 0, withCredentials: false, … } ​ stack: "" ​ : Object { constructor: AxiosError(message, code, config, request, response), toJSON: toJSON() , stack: "", … } ​​ constructor: function AxiosError(message, code, config, request, response) ​​ isAxiosError: true ​​ stack: "" ​​ toJSON: function toJSON()​​ : Error.prototype { stack: "", … }

2 replies (on page 1 of 1)

Jump to last post

I changed your API Key to THE_KEY in your text so that other users do not have access.
I'm not a code programmer, so I can't help.
If the problem is with CORS or with AXIOS, it would be interesting to put it in the title of this conversation.
So other users who know the topic can help more easily.

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?

Login