studio: "Failed to check device" Error in web-ui

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 ?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

@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.