Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to initialized a device if cache needs update #185

Open
gcampax opened this issue Aug 24, 2021 · 1 comment
Open

Fails to initialized a device if cache needs update #185

gcampax opened this issue Aug 24, 2021 · 1 comment
Labels

Comments

@gcampax
Copy link
Contributor

gcampax commented Aug 24, 2021

From the logs:

Loaded class definition for com.smartnews, module type: org.thingpedia.v2, version: 13
Cached module com.smartnews is out of date (found 14, want 13)
stdout Archive:  /tmp/thingengine-com.smartnews--1-RSTSN15kzKeY-.zip

stderr 
Cached module com.smartnews is out of date (found 14, want 13)
TypeError: deviceClass is not a constructor
    at /opt/almond-cloud/node_modules/thingpedia/dist/factory.js:133:20
    at async DeviceDatabase.addSerialized (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/engine/devices/database.js:314:26)
    at async ExecutionDialogueAgent.tryConfigureDevice (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/execution_dialogue_agent.js:115:28)
    at async ExecutionDialogueAgent._chooseDevice (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/abstract_dialogue_agent.js:230:28)
    at async ExecutionDialogueAgent._prepareForExecution (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/abstract_dialogue_agent.js:198:17)
    at async ExecutionDialogueAgent.execute (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/abstract_dialogue_agent.js:105:13)
    at async ThingTalkDialogueHandler._executeCurrentState (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/handlers/thingtalk.js:369:81)
    at async DialogueLoop._handleUserInput (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/dialogue-loop.js:308:27)
    at async DialogueLoop._loop (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/dialogue-agent/dialogue-loop.js:354:21)
@gcampax gcampax added the bug label Aug 24, 2021
@gcampax
Copy link
Contributor Author

gcampax commented Aug 24, 2021

Actually, it seems that the version number is going backwards. I think there is some confusion with developer keys? At the time of this issue, version 13 was approved, version 14 was developer only. The user that noticed this issue was not a developer and was running on the shared cloud backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant