question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Failed to check device" Error in web-ui

See original GitHub issue

After following the readme step by step, I have an issue while trying to read my Lunii’s* library (I’m using version 0.0.2).

Error “Failed to check device” appears.

When I look at Chrome’s output console It seems that there is 2 issues :

403 using websockets

image

Error while parsing a JSON Object

It happens on /api/device/infos and here is the error output :

Matron!
500 Illegal type in JsonObject: class com.lunii.device.wrapper.model.StoryTeller$FirmwareVersion
io.vertx.core.json.Json.checkAndCopy(Json.java:265)
io.vertx.core.json.JsonObject.put(JsonObject.java:684)
studio.webui.service.StoryTellerService.deviceInfos(StoryTellerService.java:98)
studio.webui.api.DeviceController.lambda$apiRouter$2(DeviceController.java:35)
io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:227)
io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:121)
io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:154)
io.vertx.ext.web.impl.RouterImpl.handleContext(RouterImpl.java:256)
io.vertx.ext.web.impl.RouteImpl.handleContext(RouteImpl.java:227)
io.vertx.ext.web.impl.RoutingContextImplBase.iterateNext(RoutingContextImplBase.java:121)
io.vertx.ext.web.impl.RoutingContextWrapper.next(RoutingContextWrapper.java:154)
io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.doEnd(BodyHandlerImpl.java:296)
io.vertx.ext.web.handler.impl.BodyHandlerImpl$BHandler.end(BodyHandlerImpl.java:276)
io.vertx.ext.web.handler.impl.BodyHandlerImpl.lambda$handle$0(BodyHandlerImpl.java:87)
io.vertx.core.http.impl.HttpServerRequestImpl.doEnd(HttpServerRequestImpl.java:537)
io.vertx.core.http.impl.HttpServerRequestImpl.handleEnd(HttpServerRequestImpl.java:526)
io.vertx.core.http.impl.Http1xServerConnection.handleEnd(Http1xServerConnection.java:167)
io.vertx.core.http.impl.Http1xServerConnection.handleMessage(Http1xServerConnection.java:136)
io.vertx.core.net.impl.ConnectionBase.handleRead(ConnectionBase.java:390)
io.vertx.core.impl.ContextImpl.executeTask(ContextImpl.java:320)
io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:43)
io.vertx.core.impl.ContextImpl.executeFromIO(ContextImpl.java:188)
io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:174)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.channel.ChannelInboundHandlerAdapter.channelRead(ChannelInboundHandlerAdapter.java:86)
io.netty.handler.codec.http.websocketx.extensions.WebSocketServerExtensionHandler.channelRead(WebSocketServerExtensionHandler.java:102)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:297)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1434)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:965)
io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:163)
io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:644)
io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:579)
io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:496)
io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:458)
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:897)
io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
java.base/java.lang.Thread.run(Thread.java:830)

Official Luniistore* is working properly and Ihave “Succeeded in deploying verticle” success message : image

I’m using windows, have jdk 13.0.1 installed and have just refreshed an token. I’ve tried with both Luniistore* program running / not running (it seems that it’s best when Luniistore* is not running).

Am I missing something ?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
marian-m12lcommented, Nov 6, 2019

@dreeco I published a new version which should fix your issues (firmware version and metadata from official.json). Although as I said in my previous message, with my own device I get a null version, so I cannot verify that the major and minor versions appear correctly with other devices.

Please let me know if it fixes your issues.

0reactions
marian-m12lcommented, Nov 13, 2019

Hi,

Sure, I’d like to find out what’s not working. I guess we can continue using this issue. Can you attach the pack file? Otherwise you can email me at [redacted]

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error "Device does not support Update Control." in Web UI
Hi! I get the error message “Device does not support Update Control.” in the Mender Web UI after creating a deployment: I searched...
Read more >
Error add new device to ESRS - Dell Community
Hello! I try to add a new device (Dell Unity XT680F) to ESRS VE v3.52.20.08 and get this error: "This device is not...
Read more >
Cannot access the Web UI in Home Assistant #9004 - GitHub
Failed to call 'Frontend' 'stop' (TypeError: Cannot read property 'clients' of null... Also at another day's log I see. Error while starting ...
Read more >
K46055636: Device GUI is not loading / CLI working fine - AskF5
The following error messages indicate that the Device Certificate and Key pair does not match.
Read more >
Connection Errors in Web UI - WatchGuard Technologies
Try to log in to the web UI from a different device. Try to view other websites from the same device. Try to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found