Using the Device Asset Write Rest API [message #1815018] |
Tue, 24 September 2019 09:34  |
Patrick Sernetz Messages: 1 Registered: September 2019 |
Junior Member |
|
|
I am currently working on an UI for Kapua to resemble the user experience from another project we´ve did early this year. While doing so, I am failing in writing to an asset channel using the endpoint `v1/_/devices/AgE72ry2B3c/assets/_write`. The body I am sending looks like this:
{
"assets": [
{
"name": "Display",
"channels": [
{
"mode": "WRITE",
"name": "Segment",
"value": {}
}
]
}
]
}
and I receive the following response:
{
"type": "kapuaExceptionInfo",
"httpErrorCode": 500,
"message": "Error: BAD_REQUEST, Generic Error - BAD_REQUEST: {1}, org.eclipse.kura.KuraException: Generic Error - BAD_REQUEST: {1}\n\tat org.eclipse.kura.internal.asset.cloudlet.AssetCloudlet.write(AssetCloudlet.java:305)\n\tat org.eclipse.kura.internal.asset.cloudlet.AssetCloudlet.doExec(AssetCloudlet.java:206)\n\tat org.eclipse.kura.core.cloud.MessageHandlerCallable.call(MessageHandlerCallable.java:139)\n\tat org.eclipse.kura.core.cloud.MessageHandlerCallable.call(MessageHandlerCallable.java:1)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)\n\tat java.lang.Thread.run(Thread.java:748)\n, [Ljava.lang.Object;@32dc4f51",
"kapuaErrorCode": "ASSET_WRITE_ERROR"
}
Maybe someone did the same and found a solution...
|
|
|
|
Powered by
FUDForum. Page generated in 0.01693 seconds