Build an fCC Forum Leaderboard - Build an fCC Forum Leaderboard - step 21

Tell us what’s happening:

iam stuck on step 21, i donno if i should fetch the avatar url ?! it’s not available link
any hint here ?
thanks

Your code so far

/* file: script.js */
const avatarUrl = 'https://cdn.freecodecamp.org/curriculum/forum-latest';

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36

Challenge Information:

Build an fCC Forum Leaderboard - Build an fCC Forum Leaderboard

you don’t need to fetch

maybe you need to read again the related user stories 8-12

  1. The getWeather function should accept a city as its only argument and return the JSON from the Weather API.

async function getWeather (city) {
 fetch(`https://weather-proxy.freecodecamp.rocks/api/city/${city}` )
 .then(res => res.json())
 .then(data => data)
 .catch(error => {
    console.error(`Error: ${error}`)
  })
  
}

iam stuck here too, i fetched the weather api succefully and i see the results on the console but i can’t pass the test

  1. You should have an asynchronous function named getWeather that >>>fetches<<< the weather information from the https://weather-proxy.freecodecamp.rocks/api/city/<CITY> API and returns it. Note that this API returns data using the metric system, that means m/s for wind speed, and Celsius for the temperature.

the topic you opened is for the forum leaderboard project, if now you are asking for help for the weather app it’s quite confusing, please stick to one project per topic, do not ask for help for multiple projects in a single topic

my response was because you were asking about the avatar url

that is user story 5 for the weather app project, not one of the user stories I mentioned for the leaderboard project

oh, it’s my fault. i got confused,
ok i will open a new topic for the weather app.

please post again in this topic when you have an update for your work with the forum leaderboard

thanks for your patience :slight_smile:

Why are you working on two labs at the same time?

You don’t want to focus on one until it’s finished?

If you’re getting your forum threads mixed up it must be hard to work on code.

i agree with you, but i am not working on the 2 labs at the same time,
i decided to delay the leader board lab for a while,
and iam now only working on the weather api .

1 Like