C
C#•2y 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
RiamuYui•2y ago
I'll include the other references to this api:
RiamuYui
RiamuYui•2y ago
I'm just so lost
Yawnder
Yawnder•2y 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
RiamuYui•2y ago
Hold on, got more errors now but thanks for spotting that 😂
Yawnder
Yawnder•2y ago
I'll see if/when I can help, I'm in a game
RiamuYui
RiamuYui•2y ago
currently getting a 500 response but I'll look around as to why It's not hitting the Controller at all