Jump to content

Remote Control POSTS failing with Null reference error


GlennNZ

Recommended Posts

GlennNZ
Hi all,

 

Have been struggling through a few things by a bit of trial and error - but latest issue is cannot get Remote Control Commands to work.

 

POSTs - as described in Wiki.

Authenicated, passing Emby Token.

 

Initally was getting this error setting up new API endpoint - thought would simplify - and still get same error in simple ConsoleApp.

 

???

 

Any help

 

Thanks

 

 

 

2016-01-24 12:05:21.8637 Error HttpServer: Error processing request for /Sessions/cee34456d5a702be30cf5be5dccb0c61/Playing/Unpause

*** Error Report ***

Version: 3.0.5847.0

Command line: C:\Users\Vwin7\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe

Operating system: Microsoft Windows NT 6.2.9200.0

Processor count: 4

64-Bit OS: True

64-Bit Process: True

Program data path: C:\Users\Vwin7\AppData\Roaming\Emby-Server

Application Path: C:\Users\Vwin7\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe

Object reference not set to an instance of an object.

ServiceStack.HttpError

No Stack Trace Available

Link to comment
Share on other sites

GlennNZ

Wow- thanks for the quick reply.

 

Checking that now - does seem the same as webclient - Checking Headers etc.

56a435ee3be3f_SwaggerErrors1.png

 

Swagger UI (finally got going) gives a appversion cannot be null error?

Link to comment
Share on other sites

GlennNZ

Thanks Luke

 

More trial and error - Have it working in test console app.

 

Not sure what the difference was - did change Authorization to X-Emby-Authorization, plus a few other minor changes.  If I track down my issue - I'll update this post for future reference.

 

---> Back you go to Home Theatre!

 

Glenn

Edited by GlennNZ
Link to comment
Share on other sites

Looks like maybe your connection wasn't properly initiated with all the needed data (appVersion, specifically).

Link to comment
Share on other sites

GlennNZ

Thanks

That appVersion error - was only with Swagger.

 

Was harder to track down other error - believe it was client Id doesn't support remote control (ie. new home theatre)

 

Thanks

Link to comment
Share on other sites

Thanks

That appVersion error - was only with Swagger.

 

Was harder to track down other error - believe it was client Id doesn't support remote control (ie. new home theatre)

 

Thanks

 

Ahhh.. yes, then that is actually proper behavior.  The item trying to do the remote-controlling should be looking at the capabilities of the target device before attempting to send commands.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...