Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browse.run fails with "Can't transform null or non-string/zero-length body of" #210

Open
mvysny opened this issue Oct 25, 2017 · 2 comments

Comments

@mvysny
Copy link

mvysny commented Oct 25, 2017

On some DLNAs I am receiving the following error:

Caused by org.fourthline.cling.model.action.ActionException: Error reading SOAP response message. Can't transform null or non-string/zero-length body of: (IncomingActionResponseMessage) 200 OK
       at org.fourthline.cling.protocol.sync.SendingAction.handleResponse(SendingAction.java:145)
       at org.fourthline.cling.protocol.sync.SendingAction.invokeRemote(SendingAction.java:91)
       at org.fourthline.cling.protocol.sync.SendingAction.executeSync(SendingAction.java:63)
       at org.fourthline.cling.protocol.sync.SendingAction.executeSync(SendingAction.java:51)
       at org.fourthline.cling.protocol.SendingSync.execute(SendingSync.java:54)
       at org.fourthline.cling.protocol.SendingAsync.run(SendingAsync.java:54)
       at org.fourthline.cling.controlpoint.ActionCallback.run(ActionCallback.java:151)
       at org.fourthline.cling.support.contentdirectory.callback.Browse.run(Browse.java:89)
       at sk.baka.photoframe.fsimpl.dlna.DLNA.list(DLNA.kt:151)

I can not reproduce the issue; is it actually according to the DLNA spec, to return an empty string as a response? Or is perhaps cling ignoring an error code by accident? Hard to say.

@mvysny
Copy link
Author

mvysny commented Oct 25, 2017

The program was actually trying to list a really weird-looking dir: Failed to list dir 3$16$1$A$3 of urn:upnp-org:serviceId:ContentDirectory/urn:schemas-upnp-org:service:ContentDirectory:1/Justin Maggard Windows Media Connect compatible (MiniDLNA) 1

Perhaps I should ignore dirs with $ in their name?

@mvysny
Copy link
Author

mvysny commented Oct 25, 2017

The full error message is actually Error: Error reading SOAP response message. Can't transform null or non-string/zero-length body of: (IncomingActionResponseMessage) 200 OK (HTTP response was: 500 Internal Server Error):500 Internal Server Error, so apparently the server DLNA failed, but cling is producing a really misleading message here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant