Updated on 2023-09-13 GMT+08:00

Invalid URL

Symptoms

The error message "msg": "Status code was -1 and not [200]: Request failed: urlopen error no host given" is displayed.

Cause Analysis

The URL may contain backslashes (\).

Solution

Change backslashes (\) to forward slashes (/) in the URL.