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: "", ⦠}
Can't find a movie or TV show? Login to create it.
Want to rate or add this item to a list?
Not a member?
Reply by ticao2 š§š· pt-BR
on July 14, 2022 at 9:11 AM
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.
Reply by ticao2 š§š· pt-BR
on July 14, 2022 at 9:29 AM
Maybe it helps:
Axios Issues
https://www.themoviedb.org/talk/6037bbc2afa1b00043a76e2c
https://www.themoviedb.org/talk/5f621eae93388b003864513c
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
https://www.themoviedb.org/talk/5d5901d21749730017dd837a
https://www.themoviedb.org/talk/5bab86480e0a2664d4022f98
CORS Issues
See if this research can help.
https://www.themoviedb.org/talk/search?advanced_search=&query=CORS&with_category=&with_status%5B%5D=closed&with_status%5B%5D=open
In some of the topics the problem was solved.
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
https://www.themoviedb.org/talk/5833110992514162cf03b7bd
https://www.themoviedb.org/talk/5c5dff05925141338cbce2db
https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS/Errors/CORSNotSupportingCredentials
And this
https://www.themoviedb.org/talk/5f621eae93388b003864513c
https://www.themoviedb.org/talk/5eb07271a13533001b72740a
If you are unable to resolve with this information, I suggest that you post a new topic with Issue CORS in the title, or something like that.
This makes it easier to get help from Travis Bell, the administrator, who has the necessary knowledge and power to solve the problem.