fix parsing port and path (#1072)

Ref
https://github.com/TheWeatherCompany/grid-api/issues/1072