"Octoprint server cannot be reached #22
-
Describe the bug Hopefully this is user error, but getting a "Octoprint server cannot be reached" message upon launching the app. I use the same address and API key with multiple other apps to connect to the Octoprint instance, all working normally. To Reproduce
Expected behavior Screenshots Environment Information:
Additional context Happy to provide any logs/etc, just not sure what would be useful here... Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I'm unsure whether this is an issue with octoprint-cli or your OctoPrint server. Can you send the output of this command if you have access to curl -H 'X-API-Key: API_KEY_HERE' http://SERVER_ADDRESS_HERE/api/version |
Beta Was this translation helpful? Give feedback.
-
Thanks for responding so fast! curl output: Really looking forward to getting this figured out looks like you've done some awesome work :) |
Beta Was this translation helpful? Give feedback.
-
Just poked around a little further... When I supply ServerAddress and ApiKey with no quotes, I get: "Invalid or Missing Arguments" followed by the help message. When I use soft or hard quotes, I get "Octoprint server cannot be reached".... |
Beta Was this translation helpful? Give feedback.
-
The configuration file shouldn't have quotes. Should look something like the image below. |
Beta Was this translation helpful? Give feedback.
-
Ahh, user error it is. I was expecting an interactive session when I executed octoprint-cli, but I now see I need to issue a sub command at runtime. Thanks so much. |
Beta Was this translation helpful? Give feedback.
The configuration file shouldn't have quotes. Should look something like the image below.
Invalid or Missing Arguments
should only be showing up if the program arguments used are incorrect. Can you remove the quotes and tryoctoprint-cli version
and tell me if the issue persists?