Dj-Viking / weather-app-MERN

0 stars 0 forks source link

create regex type for City name #4

Closed Dj-Viking closed 3 years ago

Dj-Viking commented 3 years ago
Dj-Viking commented 3 years ago

no need, it was a problem with the utf8.encode() function not being used with node fetch. for some reason node fetch on the server does not encode the url before being sent to an api so the node-fetch fails if there are unescaped characters in the url as a result of not being utf8 encoded.