Sorry about the delay in replying.
FYI This is being handled as an AutoCRUD process (don’t know if that would matter).
The response header is:
{
Date: Wed, 01 Dec 2021 11:40:41 GMT
Server: Kestrel
Set-Cookie: ss-id=xxx; path=/; samesite=lax; httponly, ss-pid=xxx; expires=Sun, 01 Dec 2041 11:40:41 GMT; path=/; samesite=lax; httponly, ss-opt=temp; expires=Sun, 01 Dec 2041 11:40:41 GMT; path=/; samesite=lax; httponly, X-UAId=5; expires=Sun, 01 Dec 2041 11:40:41 GMT; path=/; samesite=lax; httponly
Transfer-Encoding: chunked
Vary: Accept
X-Powered-By: ServiceStack/5.133 NetCore/Windows/net6
Content-Type: application/jsv
}
I have an UncaughtExceptionHandler in AppHost.Configure() but a breakpoint here doesn’t get hit.
When calling the API from Postman it returns a HTML page with the message:
"We're sorry <b>/api/currentLocalCoordinateSystem</b> is no longer here."
Importing the API into Postman shows it in the Collections.
I just went to check the /metadata and /swagger-ui pages to see if it still appears there but these pages no longer display.
The api has a signature of “/api/currentLocalCoordinateSystem/{Id}”.
The request object is:
[ ProtoContract ]
[ ValidateIsAuthenticated ]
[ RequiredPermission( "CanChangeCurrentLocalCoordinateSystem" ) ]
[ Route( "/api/currentLocalCoordinateSystem/{Id}", HttpMethods.Put ) ]
public class UpdateCurrentLocalCoordinateSystem : IUpdateDb< CurrentLocalCoordinateSystem >, IReturn< UpdateCurrentLocalCoordinateSystemResponse >, IHasIntId
{
[ ProtoMember( 1 ) ]
[ ApiMember( Name = ApiMemberName.NamedConnection, Description = ApiMemberDescription.NamedConnection, IsRequired = false ) ]
public string NamedConnection { get; set; }
[ ProtoMember( 2 ) ]
[ ApiMember( Name = ApiMemberName.RowVersion, Description = ApiMemberDescription.RowVersion, IsRequired = true ) ]
public ulong RowVersion { get; set; }
[ ProtoMember( 3, DataFormat = DataFormat.ZigZag ) ]
[ ApiMember( Name = "Id", Description = "The current local coordinate system identifier.", IsRequired = true ) ]
public int Id { get; set; }
[ ProtoMember( 4, DataFormat = DataFormat.ZigZag ) ]
[ ApiMember( Name = "Local Coordinate System Id", Description = "The local coordinate system identifier.", IsRequired = true ) ]
public int LocalCoordinateSystemId { get; set; }
}
I have noticed that when I call the API from Postman with the Id specified in the body (as I usually do), then the “no longer here” message is returned:
{
"NamedConnection": "testdb",
"RowVersion": 1,
"Id": 1,
"LocalCoordinateSystemId": 1000
}
but if I remove it from the body and add it to the url then it works.
Creating an UpdateCurrentLocalCoordinateSystem request object and sending via a ServiceStack Client now always fails.
Regards,
Alan