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

KM2 - TcpDataSourceProvider.fetchInformation fails #16

Closed
ramack opened this issue Oct 27, 2018 · 2 comments

Comments

@ramack
Copy link
Contributor

commented Oct 27, 2018

when calling TcpDataSourceProvider.fetchInformation on the IP of a KM2 device, an exception

Server returned HTTP response code: 502 for URL: http://xxxxxx:80/cgi-bin/get_resol_device_information
is raised.

Edit: forgot to link the use case for this. It is here: https://community.openhab.org/t/new-binding-resol-vbus/2203/139

@danielwippermann

This comment has been minimized.

Copy link
Owner

commented Oct 28, 2018

Hmmm, I tried it with a minimal test case here and it worked:

		try {
			TcpDataSource ds = TcpDataSourceProvider.fetchInformation(Inet4Address.getByName("192.168.5.81"), 2000);
			System.out.println(ds.getName());
		} catch (IOException ex) {
			System.err.println(ex);
		}

Prints the name of the KM2 including the IP to the console.

Since the original poster mentioned that manually accessing the same URL yields the same error it must be something in the KM2 itself. Perhaps a restart will solve the problem? Or a firmware update?

I'll close this issue and continue disussing it over at "your place" :)

@ramack

This comment has been minimized.

Copy link
Contributor Author

commented Oct 28, 2018

yes, perfect. Thanks for your support. Reporting it here was the only idea that I had because I neither have a KM2 tor try with nor do I know the device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.