I got this error every time i executed either gis.map() or WebMap(). I was able to log in and get other layer and map contents just fine. But just not creating new map. I have tried with both gis.map() and WebMap()
Solution: https://github.com/Esri/arcgis-python-api/issues/1613