Hi guys,
For some reason I am suddenly struggling with serialization errors on my messages/DTOs (I’m tackling this the same way that I always do - so I’m a little lost as to what the cause could be). Hopefully its something small, as it seems to be a persistent problem across all my messages with payloads (based on JavaScript that was working previously).
your assistance would be greatly appreciated, as this is currently hamstringing my development efforts
here are the details :
I am using version 0.0.38 of the servicestack-client package in an application based on the Vue.js App template.
here is an example of one of my messages :
this is what the model/dto behind the RecordType property looks like :
this is what the generated DTOS look like in my web project :
the code that executes the request looks like this :
at runtime the method is executed like this (drilled down to the “fetch” executed by the servicestack client in index.ts) :
when I look at the object transported over the wire using Fiddler, however - I don’t see a payload :
this (obviously) results in a NULL RecordType property within the Service.
things I’ve tried :
- adding DataContract/DataMember attributes to the message / dto
- changing the casing of the properties on the message / DTO
- using a POST instead of a PUT
- Updating the servicestack client version (was originally 0.0.35)
What am I missing?
[RB]