auchter / haaska

Home Assistant Alexa Skill Adapter
263 stars 61 forks source link

config.json URL ending with letter "a" are cut short when testing. #120

Open raulvasquez opened 5 years ago

raulvasquez commented 5 years ago

I am running into an issue where the domain is cut short when testing in lambda:

Config.json. "url": "https://test.domain.caa/api/",

DROPS .caa to .c

Response: { "errorMessage": "HTTPSConnectionPool(host='test.domain.c', port=443): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fb95f068c18>: Failed to establish a new connection: [Errno -2] Name or service not known',))", "errorType": "ConnectionError", Config.json. "url": "https://test.domain.caaaaaaa/api/",

Drops .caaaaaaa to .c also

Response: { "errorMessage": "HTTPSConnectionPool(host='test.domain.c', port=443): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fca8b306c18>: Failed to establish a new connection: [Errno -2] Name or service not known',))", "errorType": "ConnectionError",

url": "https://test.domain.caxa/api/" drops caxa to cax. "errorMessage": "HTTPSConnectionPool(host='test.domain.cax', port=443): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7f84f143cc18>: Failed to establish a new connection: [Errno -2] Name or service not known',))", "errorType": "ConnectionError",

url": "https://test.domain.caxaZa/api/" same behavior. Response: { "errorMessage": "HTTPSConnectionPool(host='test.domain.caxaz', port=443): Max retries exceeded with url: /api/alexa/smart_home (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x7fa56731ec18>: Failed to establish a new connection: [Errno -2] Name or service not known',))", "errorType": "ConnectionError",

raulvasquez commented 5 years ago

I resolved my issue by adding a colon : after the domain. Eg. https://domain.caxa:/api/