native-fetcher: add error log messages, fix a bug in parsing the port