how to fix invalid hostname error