Skip to content
This repository has been archived by the owner on Aug 21, 2019. It is now read-only.

Missing required service info. #3

Open
amirmatin opened this issue Aug 27, 2017 · 2 comments
Open

Missing required service info. #3

amirmatin opened this issue Aug 27, 2017 · 2 comments

Comments

@amirmatin
Copy link

Hi,
I'm trying to register a service and getting the following error
"Missing required service info."
my cordova version is 6.1.1 and here is my js code:

var ZC = cambiocreative.CDVZeroConfig;
var name = "Alex";
var port = 8080;
var text = "sample text";
ZC.register("_http._tcp.local", name, port, text);

thanks..

@ovhemert
Copy link
Member

Did you try with an extra "." at the end of the service type?
Like this:

ZC.register("_http._tcp.local.", name, port, text);

@amirmatin
Copy link
Author

amirmatin commented Aug 28, 2017

getting the same error...
I'm getting it at zeroconf.js file, line 41
fail: function (o) {
console.error("Error " + JSON.stringify(o));
}

however it solved the problem with the "list" function, (ie it shows the registered services on the network which i do from a different way on linux)
thanks..

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

No branches or pull requests

2 participants