Skip to content

This sample do not appear to work against TB 1.4.0, self-hosted or live demo #6

Description

@aderusha

Attempting to run this against demo.thingsboard.io or a fresh local install of TB 1.4.0 both yield the same results: dashboards are created, but rules and devices aren't. This has been tested under Windows 10 and Ubuntu 16.04 w/ Java 8.

Test command: java -jar facilities-monitoring.jar demo.thingsboard.io

Error output (example, it repeats the Rules and Device errors several times, presumably one for each rule and device):
Unable to upload rule! Cause: org.springframework.web.client.HttpClientErrorException: 400 null at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380) at org.thingsboard.demo.loader.data.DemoData.lambda$uploadData$9(DemoData.java:380) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.thingsboard.demo.loader.data.DemoData.uploadData(DemoData.java:366) at org.thingsboard.demo.loader.DemoLoader.loadDemoFromClasspath(DemoLoader.java:77) at org.thingsboard.samples.facility.FacilitiesDemoMain.main(FacilitiesDemoMain.java:64) Unable to upload device! Cause: org.springframework.web.client.HttpClientErrorException: 400 null at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91) at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:667) at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:620) at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:580) at org.springframework.web.client.RestTemplate.postForObject(RestTemplate.java:380) at org.thingsboard.demo.loader.data.DemoData.lambda$uploadData$12(DemoData.java:451) at java.util.ArrayList.forEach(ArrayList.java:1257) at org.thingsboard.demo.loader.data.DemoData.uploadData(DemoData.java:420) at org.thingsboard.demo.loader.DemoLoader.loadDemoFromClasspath(DemoLoader.java:77) at org.thingsboard.samples.facility.FacilitiesDemoMain.main(FacilitiesDemoMain.java:64)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions