I'm using the 2.3RC version and I'm having issues with the ImportNewProgram API command. I've tried using both the example JSON and my created JSON but all are having issues with the command executing. The other parts of the API work fine, it just seems this command and the ImportPrograms command don't seem to work with my generated JSON.
The error in the scheduler log is
Code: Select all
2014-08-08 19:40:59.7539 [Error][15]: REST POST /Guide/ImportNewProgram
error:
System.NullReferenceException: Object reference not set to an instance of an object.
at .(GuideProgram , GuideSource , Boolean )
at ArgusTV.Business.GuideFacade.ImportProgram(GuideProgram guideProgram, GuideSource source)
at ArgusTV.ServiceImplementation.GuideModule.<.ctor>b__25(Object p)
at CallSite.Target(Closure , CallSite , Func`2 , Object )
at Nancy.Routing.Route.<>c__DisplayClass4.<Wrap>b__3(Object parameters, CancellationToken context)
Code: Select all
{"GuideProgram":{"GuideProgramId":"4277d62e-1f50-11e4-bc1d-8c89a5e4bd9e","Id":872604,"GuideChannelId":"d486bcee-f1fd-4b85-91ec-5cd9d34b8c49","Title":"NCIS","StartTime":"\/Date(1408140000000-0500)\/","StartTimeUtc":"\/Date(1408140000000)\/","StopTime":"\/Date(1408143600000-0500)\/","StopTimeUtc":"\/Date(1408143600000)\/","PreviouslyAiredTime":null,"SubTitle":"Split Decision","Description":"When a Marine is killed with a specialized military weapon, the agents investigate the illegal weapons market and find an undercover ATF agent (Bellamy Young) also working on the case, and Gibbs asks her to work with them to find the killer. SSgt. Washington: Laz Alonso. SSgt. Rafael: Sam Witwer. (cc)","Category":"crime drama","IsRepeat":false,"IsPremiere":false,"Flags":0,"SeriesNumber":1,"EpisodeNumberDisplay":"S01E21","EpisodeNumber":21,"EpisodeNumberTotal":null,"EpisodePart":null,"EpisodePartTotal":null,"Rating":"TV-PG","StarRating":null,"Directors":[],"Actors":["Mark Harmon","Michael Weatherly","David McCallum","Sasha Alexander","Pauley Perrette","Sean Murray","Laz Alonso","Sam Witwer","Bellamy Young"],"SeriesId":null,"IsSeriesTermination":false,"LastModifiedTime":"\/Date(1407539039000-0500)\/","IsDeleted":false,"Version":2},"Source":2}