Forum rules
Under no circumstances is spamming or advertising of any kind allowed. Do not post any abusive, obscene, vulgar, slanderous, hateful, threatening, sexually-orientated or any other material that may violate others security. Profanity or any kind of insolent behavior to other members (regardless of rank) will not be tolerated. Remember, what you don’t find offensive can be offensive to other members. Please treat each other with the kind of reverence you’d expect from other members.
Failure to comply with any of the above will result in users being banned without notice. If any further details are needed, contact: “The team” using the link at the bottom of the forum page. Thank you.
helio1981
Posts: 3
Joined: Sat Feb 24, 2018 3:05 pm

missing non-optional member: data

Sat Feb 24, 2018 3:11 pm

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?

helio1981
Posts: 3
Joined: Sat Feb 24, 2018 3:05 pm

Re: missing non-optional member: data

Sat Feb 24, 2018 3:46 pm

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

User avatar
oss
Site Admin
Posts: 5879
Joined: Sat Feb 25, 2006 11:26 pm
Contact: Website

Re: missing non-optional member: data

Tue Feb 27, 2018 6:20 am

can you consume other method? Dont forget to pass your token...
Searching by Tag is temporary disabled also.

helio1981
Posts: 3
Joined: Sat Feb 24, 2018 3:05 pm

Re: missing non-optional member: data

Tue Feb 27, 2018 3:01 pm

well...

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

sorry you guys.

Return to “Programs using OS”

Who is online

Users browsing this forum: No registered users and 39 guests