I downloaded the Slicehost Pro iPhone application a long time ago and didn’t have much time at that point to look into what the issue might be. After not getting the Slicehost iPhone app working immediately I pretty much forgot about it until I needed it recently. This time around I spent more time looking into what the issue might be and as able to come up with a solution fairly regularly. Below I describe the error in detail, how to resolve the error, and another possible error you might see including the resolution if you do see the second error.
SliceHost Pro iPhone Application Connection Failure:
Connection Failure: Could not communication with Slicehost. Please check your network connection or API host settings.
At first I thought that the API key must be incorrect so I tried entering it in multiple times without any success. Next I tried copying and then pasting it into the field but still was unable to get the Slicehost iPhone application working. During the troubleshooting process I read some of the Slicehost API documentation and saw where the connection specifies that HTTPS is used for connections and kept that in the back of my mind. After looking around the settings some more I found that you could configure the Slicehost API Host itself at the bottom of the Slicehost Pro Settings screen as shown in the below image.
Slicehost Pro iPhone Application Settings Screen:
As you can see the default specified Slicehost API Host is api.slicehost.com so I thought I would try adding “https://” in front of the Host to see if it made a difference. Sure enough it started working immediately. I am not sure if adding the https:// actually made the difference or if there might have been a space in front of the API host causing the issue. I removed the text I added and attempted to login to the application again and it continued to work so again I am not sure if adding the https:// worked or if something else such as removing a space in front (if there was one) that caused it to start working. Regardless modifying the Slicehost API Host settings can more than likely resolve your Slicehost Pro iPhone application connection error.
I have seen a second error when syncing the API Key with Slicehost as well but this time it definitely was caused by a mistyped API key which is also in the Settings screen. The second error is displayed in the below example image followed by the exact error text.
Slicehost Pro iPhone App Authentication Failure:
This time the error explained fairly well what the issue was and retyping in the Slicehost API Key resolved the problem.
The Slicehost Pro iPhone application is great for checking your virtual servers, rebooting your slice, modifying DNS records, or adding new DNS records. I figured it might be beneficial to see some of the screens below in case you are reading this article before you download the application from iTunes.
Slicehost Pro iPhone Application Slice Screens:
Slicehost Pro iPhone Application DNS Zone Screens:
The Slicehost Pro iPhone application is definitely worth spending the time to download and install. You can download Slicehost or Slicehost Pro from iTunes by clicking one of the below links.
The difference between the two applications above is the fact that Slicehost manages a single Slicehost account though it can have multiple Slices within the single account and Slicehost Pro manages multiple Slicehost accounts.