✅ Api request matching issue
i have this method
and then api respons comes it cannot match with the AutomaticOperation.
that class extends class operation that looks like this
and error looks like this:
Can you please help me?
17 Replies
all fields in the Operation class are nullable
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/$codegif
Apparently the request isn't structured properly . Can you show complete
AutomaticOperation
classsure
and many more fields but i cant paste cuz of restriction
but if needed i can post seperatly
@Salmon
why your PK which is
AccountId
is nullable, it shouldn't be nullable..also I don't understand those Displayname
like whatever language that's. But the point is that you're getting two errors.
1.
2.
fotger OPerationDate for now
forget*
i am curios about the Operation error
cuz the displaymethod is just the naming and error
comes from it it says though
Have you checked your class if
Operation
is nullable and not required ?if class is nullable?
how is that
nope that
ოპერაცია
propertythat is just a name
nothing more
and its on top of a class
not a filed
it's not only name, the error is saying that it's a field
the class will get this name that you specified on the top of it
yeah
wait i'll check something
so you need to pass this field in the request object as well
with that name that you specified
match the request with the request object that api is expecting and see what are you missing
Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View