• Resolved andresnubeum7

    (@andresnubeum7)


    Hi!

    I’m experiencing some difficulties with the pluggin of Watson Assistant. In the assistant I designed, I operate with arrays to store some words that the user says along the conversation, specificly I operate with the append() function. The problem is when I want to add a new word to my Array, the assistant stops working and I can’t continue the dialog. I have searched in the inspect panel of my browser and I found this error in the Network section:

    In the response of the server when I add a new word, following the path: output – debug – log_messages – 0 :

    level: “error”
    message: “Error when updating context with context of dialog node id [node_4_1571658128621]. Dialog Node context is [{“wordList”:”<? $wordList.append(‘A’) ?>”}].?SpEL evaluation error: Expression [ $wordList.append(‘A’) ] converted to [ context[‘wordList’].append(‘A’) ] at position 21: EL1004E: Method call: Method append(String) cannot be found on JsonObject type?”
    node_id: “node_4_1571658128621”
    node_title: “Show List”

    This example right here It’s a simple test to find out that the problem is here, because it works in “Try it out” and “Link Preview”. I have already reported this to IBM and they said that If the error can’t be duplicated in the two previous scenarios, I need to report it here. Also seems that It’s something I’m typing wrongly when I’m asigning the variables, but It works on the tests.

    Thank you in advance.

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problems working with Arrays’ is closed to new replies.