Film Fider Project task 11 help

I have dug through the forums but nothing seems to be similar to my issue.
I’m on task 11 and my code is identical to the walkthrough video and everything but I cannot seem to get anything to show up on the console itself.
Here’s what I have (minus key)
edit: I have it set to return and I’m still not getting anything

const tmdbKey = `**************`;
const tmdbBaseUrl = ``;
const playBtn = document.getElementById("playBtn");

const getGenres = async () => {
  const genreRequestEndpoint = `/genre/movie/list`;
  const requestParams = `?api_key=${tmdbKey}`;
  const urlToFetch = `${tmdbBaseUrl}${genreRequestEndpoint}${requestParams}`;

  try {
    const response = await fetch(urlToFetch);
    if (response.ok) {
      const jsonResponse = await response.json();
     const genres = jsonResponse.genres
      return genres
  } catch (error) {

const getMovies = () => {
  const selectedGenre = getSelectedGenre();

const getMovieInfo = () => {};

// Gets a list of movies and ultimately displays the info of a random movie from the list
const showRandomMovie = () => {
  const movieInfo = document.getElementById("movieInfo");
  if (movieInfo.childNodes.length > 0) {

playBtn.onclick = showRandomMovie;

You’re missing a } to end the getGenres function.
(You might see an error related to that in the console.)

1 Like

I fixed it! but I’m still not seeing anything pop up in the console

also it might be worth noting that I do have ublock orgin active

ok that’s not what the video walkthrough did but ok.
I’m now getting a 404 error on the website unfortunately I can’t provide screenshots cus it lists the api key I got

I had a different thing for tmdbBaseUrl (on line 2).
I had

const tmdbBaseUrl = "";
1 Like

that was probably it?
though it was also saying “genres” wasn’t defined in a file we’re not really supposed to touch so I’m not sure

That is a clear example of a, “Whoa!” URL in a code literal. 3?