We help IT Professionals succeed at work.

New podcast episode! Our very own Community Manager, Rob Jurd, gives his insight on the value of an online community. Listen Now!


getting error when importing

Last Modified: 2018-02-06
I have an ssh client called "termius" to import all my hosts from a notepad. I am using a script with python and github to make all this work. I dont know much about scripting at all but I've been provided with all these tools to make this work. Does anyone know what the error below mean? As you can see the import was successful but it errors out later. I'm using a siple notepad file. I provided a snip it of how it looks.

Abilene North Place,
Abilene South Place,
Abilene west Place,
Addison Place,
test 500,

Watch Question

Chris DentPowerShell Developer
Top Expert 2010

The website you're talking to isn't providing much of a valid response. Either there's a problem with the site, or the URL you have in the script is incorrect.

It's not really a problem of how you're running it, unless you were expected to provide a URL on the command line.
Bill PrewTest your restores, not your backups...
Expert of the Year 2019
Top Expert 2016

Well, 502 errors can be a wide range of things.  Does the script go out to the internet for some reason?

It looks like you are running part of this as/from a Powershell command shell, is there Powershell code?  And also python I assume?  You will need to post those scripts here if you want to get some help I would expect, it's pretty hard to diagnose problems without them.

Are you just trying to add the hosts from this text file to the local hosts file on a single computer?  If so this feels like the hard way to do that, but I suspect there is more to it than that?

Network admin
Unlock this solution and get a sample of our free trial.
(No credit card required)
Shark AttackNetwork admin


just started working
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.