|
8-12頁建立完知識庫後,8-13頁以程式使用知識庫出現以下錯誤: (已經確認Host GUID 授權碼皆無誤)
輸入諮詢問題 (直接按 Enter 鍵就結束):電話 Traceback (most recent call last):
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 871, in _get_hostport port = int(host[i+1:])
ValueError: invalid literal for int() with base 10: '//ptlinsmartqna.azurewebsites.net/qnamaker'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\tp957\Desktop\專題\QnA1.py", line 22, in <module> conn = http.client.HTTPSConnection(host) #連線
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 1382, in __init__ super(HTTPSConnection, self).__init__(host, port, timeout,
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 833, in __init__ (self.host, self.port) = self._get_hostport(host, port)
File "C:\ProgramData\Anaconda3\lib\http\client.py", line 876, in _get_hostport raise InvalidURL("nonnumeric port: '%s'" % host[i+1:])
InvalidURL: nonnumeric port: '//ptlinsmartqna.azurewebsites.net/qnamaker' |