Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi,
I desperately try to get live data from Thingworx to Vuforia Studio.
On Thingworx, the user's organisation is set to the Things' visibility permission and the user has full run-time permissions. The parameter is updating when I refresh the bound properties (data from MQTT broker).
I can publish with the user to the experience service, and I can also access the experience. Still, I only get the value which is set when the experience is loading, both in preview mode in Vuforia Studio and Vuforia View. During further "runtime" the value is not updated any more. In the debugging console in Chrome, I get
Uncaught Error: Could not restore subscription on Things:<THINGNAME>:<PARAMETERNAME>.DataChange:
at s (bundle-es6.min.js:17:107098)
at bundle-es6.min.js:17:27123
at s.m (bundle-es6.min.js:17:34191)
at s.<anonymous> (bundle-es6.min.js:17:35698)
at s (bundle-es6.min.js:13:26352)
at s.emit (bundle-es6.min.js:6:26771)
at s.t (bundle-es6.min.js:17:103506)
at WebSocket.s (bundle-es6.min.js:13:26352)
(pointy brackets and allCaps are for anonymising names)
In the Vuforia Error log file I have the following
[2023-10-05T15:02:29.709Z] error: [twx-studio:index] Server error XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXX [Error: ENOENT: no such file or directory, stat 'C:\Users\Sebastian\Documents\VuforiaStudio\Projects\<PROJECTNAME>\dist\lib\cdn\angular-sanitize.min.js.map'] {
[2023-10-05T15:02:29.710Z] error: errno: -4058,
[2023-10-05T15:02:29.710Z] error: code: 'ENOENT',
[2023-10-05T15:02:29.710Z] error: syscall: 'stat',
[2023-10-05T15:02:29.710Z] error: path: 'C:\\Users\\Sebastian\\Documents\\VuforiaStudio\\Projects\\<PROJECTNAME>\\dist\\lib\\cdn\\angular-sanitize.min.js.map',
[2023-10-05T15:02:29.710Z] error: expose: false,
[2023-10-05T15:02:29.710Z] error: statusCode: 404,
[2023-10-05T15:02:29.710Z] error: status: 404
[2023-10-05T15:02:29.710Z] error: }
(XXXX-XXX... is for some value I am not sure I should share, pointy brackets allCaps see above)
When I use a Thingworx administrator account, it works 😕
Does anyone have an idea what I forgot to configure?
Best
Sebastian
Hi Sebastian,
Have you been able to figure it out yet? If not, maybe something below might help. I had similar struggles in the past...
With kind regards,
Martini3119
Hi,
Thanks for the reply.
I double checked all these settings (also the setup from the links of @azupfer) but it did not solve the issue. As a workaround, I publish publicly now, but I would prefer to require authentication in this case.
Is there any explanation how to configure a user group to be able to read live data from Thingworx? I maybe need to check if someone edited the rights of the developer group. It seems like that in View and Studio Preview the experience requests a "temporary" SubscriptionManager application key which quickly disappears again. Also I noticed that there are a bunch of old "temporary" SubscriptionManager and TwxRuntimeKey application keys which are not deleted:
Best
Sebastian
Hi @hornhaut,
For more information, you can also take a look at the following topics in the Studio Help Center:
Regards,
Amanda