FAQ  •  Register  •  Login

Request IP/serviceControl returns 500 Internal Server Error

<<

marcelo.f

Serviio newbie

Posts: 2

Joined: Thu Apr 04, 2019 8:39 pm

Post Thu Apr 04, 2019 8:47 pm

Request IP/serviceControl returns 500 Internal Server Error

Hi,

I'm facing a "500 Internal Server Error" when POST request to the "http://ip:port/serviceControl".

HEADERS:
  Code:
SOAPACTION: urn:schemas-upnp-org:service:ContentDirectory:1#Browse
Content-Type: text/xml


BODY:
  Code:
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
  <s:Body>
    <u:Browse xmlns:u="urn:schemas-upnp-org:service:ContentDirectory:1">
      <ObjectID>0</ObjectID>
      <BrowseFlag>BrowseDirectChildren</BrowseFlag>
      <Filter></Filter>
      <StartingIndex>0</StartingIndex>
      <RequestedCount>0</RequestedCount>
      <SortCriteria></SortCriteria>
    </u:Browse>
  </s:Body>
</s:Envelope>


I'm getting this endpoint via the server XML description
  Code:
<controlURL>/serviceControl</controlURL>
. Below the service descriptor response:

  Code:
<?xml version="1.0"?>
<root xmlns="urn:schemas-upnp-org:device-1-0" xmlns:dlna="urn:schemas-dlna-org:device-1-0" xmlns:sec="http://www.sec.co.kr/dlna">
   <!-- ... -->
   <device>
      <!-- ... -->
      <dlna:X_DLNADOC>DMS-1.50</dlna:X_DLNADOC>
      <dlna:X_DLNADOC>M-DMS-1.50</dlna:X_DLNADOC>
      <UDN>uuid:9b3c6f7e-0fa6-3dc5-8e0a-98a61dc339b7</UDN>
      <friendlyName>Serviio (Unknown)</friendlyName>
      <deviceType>urn:schemas-upnp-org:device:MediaServer:1</deviceType>
      <manufacturer>Petr Nejedly</manufacturer>
      <manufacturerURL>http://www.serviio.org</manufacturerURL>
      <modelName>Serviio Media Server</modelName>
      <modelDescription>Serviio, a DLNA media server</modelDescription>
      <modelNumber>1.10.1</modelNumber>
      <modelURL>http://www.serviio.org</modelURL>
      <!-- ... -->
      <serviceList>
         <!-- ... -->
         <service>
            <serviceType>urn:schemas-upnp-org:service:ContentDirectory:1</serviceType>
            <serviceId>urn:upnp-org:serviceId:ContentDirectory</serviceId>
            <SCPDURL>/serviceDescription/ContentDirectory</SCPDURL>
            <controlURL>/serviceControl</controlURL><!-- <<<<< I'm using this route! -->
            <eventSubURL>/serviceEventing/ContentDirectory</eventSubURL>
         </service>
         <!-- ... -->
      </serviceList>
   </device>
</root>


Any clue how to recover it properly? Thanks.

UPDATE 1:

I've just saw in logs this:

  Code:
2019-04-04 17:06:51,003 ERROR [ServiceControlRequestHandler] Cannot process control request: SOAPACTION specifies a different operation than the SOAP body
org.serviio.upnp.protocol.soap.ServiceInvocationException: SOAPACTION specifies a different operation than the SOAP body
   at org.serviio.upnp.protocol.soap.ServiceInvoker.invokeService(ServiceInvoker.java:78)
   at org.serviio.upnp.webserver.ServiceControlRequestHandler.handleRequest(ServiceControlRequestHandler.java:65)
   at org.serviio.upnp.webserver.AbstractRequestHandler.handle(AbstractRequestHandler.java:66)
   at org.apache.http.protocol.HttpService.doService(HttpService.java:423)
   at org.serviio.upnp.webserver.ServiioHttpService.doService(ServiioHttpService.java:78)
   at org.apache.http.protocol.HttpService.handleRequest(HttpService.java:341)
   at org.serviio.upnp.webserver.WebServer$WorkerThread.run(WebServer.java:204)


But this same request is used over other DLNA server as Plex and works just fine!
<<

zip

User avatar

Serviio developer / Site Admin

Posts: 17212

Joined: Sat Oct 24, 2009 12:24 pm

Location: London, UK

Post Sat Apr 06, 2019 7:41 pm

Re: Request IP/serviceControl returns 500 Internal Server Er

I think the value of SOAPACTION header has to be encapsulated in quotes, like:

  Code:
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"
<<

marcelo.f

Serviio newbie

Posts: 2

Joined: Thu Apr 04, 2019 8:39 pm

Post Mon Apr 08, 2019 9:09 pm

Re: Request IP/serviceControl returns 500 Internal Server Er

zip wrote:I think the value of SOAPACTION header has to be encapsulated in quotes, like:

  Code:
SOAPACTION: "urn:schemas-upnp-org:service:ContentDirectory:1#Browse"


Thanks! Worked pretty fine!
<<

robertbarna12

Serviio newbie

Posts: 1

Joined: Thu May 06, 2021 7:09 am

Post Thu May 06, 2021 7:26 am

Re: Request IP/serviceControl returns 500 Internal Server Er

I am having a trouble to set things right in hireessaywriter conf file. I am receiving a blank page but I can see the config file is compiled.

Return to Third-party tools integration

Who is online

Users browsing this forum: No registered users and 35 guests

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.