Problem with Hosted Blazor app not getting json result from api calls

Jai Holloway 60 Reputation points
2025-05-29T09:48:59.0166667+00:00

Hi there

I wrote an app about 2 years ago that has been running fine, but this month the published version of the app no longer functions. Each call to an api, although I get a 200, returns html as the response. All calls to the api's return html.

I ran it locally in debug and it works as expected, it's just the published version that doesn't work. I tried remote debugging, but it doesn't load the symbols for the client and that is what I need to debug.

I don't know what caused this behaviour and it's a business critical app. Any help would be appreciated.

Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 78,316 Reputation points Volunteer Moderator
    2025-05-29T16:56:27.29+00:00

    it looks the api calls redirect to login rather than return a 401 error on access denied.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.