Devices page error standalone mode
Issue #221
resolved
The Devices page can not be accessed when running in standalone mode. The error is fatal and go ends the process.
This is the error reported in the logs:
ExecuteTemplate failed on set/device.html: template: device.html:435:42: executing "device.html" at <.Rkey>: can't evaluate field Rkey in type *main.devicesData
exit status 1
Comments (4)
-
reporter -
Rkey used to refer to the remote site key for syncing from a standalone instance to a cloud instance. Since deprecating per-media credentials, the latter is no longer supported. The fix is to remove references to it.
-
The syncDevicesHandler function can be removed too.
-
reporter - changed status to resolved
resolved in PR #216
- Log in to comment
The error seems to originate from the template.go/ExecuteTemplate function. However, there seems to be some strange behaviour, where just logging the value of the return before the return seems to allow the page to load fully (go still panics and exits, but the contents on the page is loaded.