Thank you for asking Tobias La.
I made below code refered by Harry’s topic.
It’s almost same with Harry’s
u: (jsontest) keep()
$$url = ^”\“https://en.wikipedia.org/w/api.php?action=query&prop=extracts&exsentences=2&exintro;=&explaintext;=&format=json&titles=apple\”“
$$user_agent = ^“User-Agent: MSIE/11.0 (compatible; MSIE 10.0; Windows NT 6.2; WOW64; Trident/6.0)”
$$tmp = ^jsonopen(GET $$url “” $$user_agent)
^jsonpath( “.query .pages .56333 .extract” $$tmp)
@0 = query(direct_v ? extract ? 1)
According to above code, I expect my chatbot make a response when I entered “jsontest”.
and a response should be a information about ‘apple’ that searched from wikipedia.
However it’s faild to make a response that I expected.
When I checked log usging by :trace all, I can find that there is a problem with JSON connect.
(It says “Json connect failed”)
Do you have any idea about this situation?