ServerEvents Heartbeat responding with a 405 error making a GET call instead of a POST

We are in the process of upgrading our C# applications to .NET8 and have upgraded to ServiceStack v8.5.2.
The event-stream call appears to be registering fine as per below

but the event-heartbeat is failing as it appears to be doing a GET but only a POST is allowed.


There is a call made immediately after to event-unregister that is failing for the same reason.
Have I done something wrong in the upgrade process or is there a bug? Any help would be greatly appreciated.

When using Endpoint Routing the heartbeat endpoint is only available using the POST method which I’ve updated the C# ServiceClient to use. This change is available from v8.5.3+ which is now available from the pre release packages.

@mythz That appears to have resolved the issue. Thanks for the prompt response

1 Like

@mythz The same issue is occurring with the event-unregister call. Can you please have a look at it too?

Yeah that would also need to be updated, this change is now available in the latest pre release packages.

Since you already have v8.5.3 installed you’ll need to clear your NuGet packages cache.

@mythz Thanks that seems to have resolved the issue

1 Like