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

Error with Yelp command: Cannot read property'metadata' of undefined. #786

Open
gcampax opened this issue Sep 15, 2021 · 0 comments
Open
Labels
bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P1 We're working on it right now

Comments

@gcampax
Copy link
Contributor

gcampax commented Sep 15, 2021

Happened in dev.almond.stanford.edu, with anonymous user. Command was "what's the nearest pizza i can get to"

The command is parsed as:

$dialogue @org.thingpedia.dialogue.transaction . execute ; [ * , distance ( geo , $location . current_location ) ] of sort ( distance ( geo , $location . current_location ) asc of @com.yelp . restaurant ( ) filter id =~ " pizza " ) [ 1 ] ;

which is not correct because of * projection
(bad training data?)

Full stack trace:

TypeError: Cannot read property 'metadata' of undefined
    at Describer._preprocessParameterCanonical (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:676:74)
    at Describer._getArgCanonical (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1154:33)
    at /opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1163:58
    at Array.map (<anonymous>)
    at Describer.__describeArgList (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1163:36)
    at Describer.describeQuery (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1021:29)
    at Describer._describeExpression (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1288:112)
    at Describer.describeExpressionStatement (/opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1336:25)
    at /opt/almond-cloud/node_modules/genie-toolkit/dist/lib/utils/thingtalk/describe.js:1373:25
    at Array.map (<anonymous>)
@gcampax gcampax added bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P1 We're working on it right now labels Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dialogue-agent Issues with the dialogue agent at runtime (not state machine related) P1 We're working on it right now
Projects
None yet
Development

No branches or pull requests

1 participant