C
C#•3y ago
RiamuYui

HttpClientFactory Content is not defined

Hi, I'm trying to call the open street map api and I'm struggling to get the code running, content says it's not defined along with EnsureSuccessStatusCode but it's working totally fine with a different api?
6 Replies
RiamuYui
RiamuYuiOP•3y ago
I'll include the other references to this api:
RiamuYui
RiamuYuiOP•3y ago
I'm just so lost
Yawnder
Yawnder•3y ago
You response isn't a response. It's a Task<HttpResponse> You need to await that call. @RiamuYui (Like you did in the 2nd one.)
RiamuYui
RiamuYuiOP•3y ago
Hold on, got more errors now but thanks for spotting that 😂
Yawnder
Yawnder•3y ago
I'll see if/when I can help, I'm in a game
RiamuYui
RiamuYuiOP•3y ago
currently getting a 500 response but I'll look around as to why It's not hitting the Controller at all
Want results from more Discord servers?
Add your server