Welcome to Knowage Q&A, where you can ask questions and receive answers from other members of the community.
0 votes
1 view
I can create and successfully test a python dataset. However when I create a python widget with this dataset, it throws the error below on python service.

requests.exceptions.MissingSchema: Invalid URL '192.168.8.165/knowage/restful-services/2.0/backendservices/documenttemplate/1': No schema supplied. Perhaps you meant http://192.168.8.165/knowage/restful-services/2.0/backendservices/documenttemplate/1?
192.168.8.137 - - [29/Jan/2021:19:07:32 +0000] "POST /widget/view/img HTTP/1.1" 500 290 "http://192.168.8.165/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36"
[2021-01-29 19:07:48 +0000] [12] [DEBUG] HEAD /dataset/libraries
127.0.0.1 - - [29/Jan/2021:19:07:48 +0000] "HEAD /dataset/libraries HTTP/1.1" 200 0 "-" "Wget/1.20.1 (linux-gnu)"
[2021-01-29 19:08:48 +0000] [11] [DEBUG] HEAD /dataset/libraries
Environment Knowage Version: 7.4.0-S (Running as container in linux), knowage-python container
in Data Mining by (220 points)

Hi,

I think the url is wrong (it's missing port value):

Perhaps you meant http://192.168.8.165/knowage/restful-services/2.0/backendservices/documenttemplate/1?

Maybe there's a misconfiguration on dataset?

Regards,

Matteo

Thank you for replying. The issue was that I was using containers and set the environment variable KNOWAGE_PUBLIC_ADDRESS=192.168.8.167:8002 instead of KNOWAGE_PUBLIC_ADDRESS=http://192.168.8.167:8002

Have documented the steps in a video below for anyone who will encounter such difficulty.

https://youtu.be/xKGYm90HQR4

1 Answer

0 votes
Hi,

Ok, we can use your comment as an answer for further users.

Thank you

Matteo
by (4.9k points)
...