Wanderlust

Hello,
I am getting the same error when I try to fetch the URL in Wanderlust project.

TypeError: Failed to execute ‘fetch’ on ‘Window’: cannot convert to dictionary.

My code:

const url = ‘https://api.foursquare.com/v2/venues/explore?near=’;

// OpenWeather Info
const openWeatherKey = ‘*’
const weatherUrl = ‘https://api.openweathermap.org/data/2.5/weather’;

// Page Elements
const $input = $(’#city’);
const $submit = $(’#button’);
const $destination = $(’#destination’);
const $container = $(’.container’);
const $venueDivs = [$("#venue1"), $("#venue2"), $("#venue3"), $("#venue4")];
const $weatherDiv = $("#weather1");
const weekDays = [‘Sunday’, ‘Monday’, ‘Tuesday’, ‘Wednesday’, ‘Thursday’, ‘Friday’, ‘Saturday’];

// Add AJAX functions here:
const getVenues = async () => {
const city = $input.val();
console.log(city);
const urlToFetch = ${url}${city}&limit=10&client_id=${clientId}&client_secret=${clientSecret}&v=20210803;
try {
const response = await fetch(‘GET’, urlToFetch);
if (response.ok) {
console.log(response);
}
} catch(error) {
console.log(‘error’);
console.log(error);
}
}