Page 1 of 1

missing non-optional member: data

Posted: Sat Feb 24, 2018 3:11 pm
by helio1981
Hello members,

I'm use c# and I'm trying consume this api but I'm been faced with this exception:

{"response contains struct value with missing non-optional member: data [response : struct mapped to type rSearchMoviesOnIMDB]"}

my structs are:

Code: Select all

public struct rSearchMoviesOnIMDB { public string status; public rSearchMoviesOnIMDBMovie[] data; public double seconds; } public struct rSearchMoviesOnIMDBMovie { public string id; public string title; }
what is the problem with my data field?

Re: missing non-optional member: data

Posted: Sat Feb 24, 2018 3:46 pm
by helio1981
well..

I put this notation

Code: Select all

[XmlRpcMissingMapping(MappingAction.Ignore)] public class rSearchMoviesOnIMDB
But I'm has been faced by this response:

data = null
status = 411 Empty or invalid useragent

But login worked

Att

Re: missing non-optional member: data

Posted: Tue Feb 27, 2018 6:20 am
by oss
can you consume other method? Dont forget to pass your token...
Searching by Tag is temporary disabled also.

Re: missing non-optional member: data

Posted: Tue Feb 27, 2018 3:01 pm
by helio1981
well...

when copy and past I forgot the XmlRpcMethod notation with "LogIn" value to SearchMoviesOnIMDB method.

sorry you guys.