Apple TV app not connecting to my server.

I am not sure if this is my apps fault, or my servers fault. I tested my TVOS app running a local server on my terminal. Then once my Apple TV arrived I switched the app to use my server. Neither the simulator or the Apple TV connects to my server.


When I run my app on the simulator I get this:


_CFURLRequestCopyStorageSession deprecated

2015-10-15 16:01:14.166 Living Health TV[40273:587128] ITML: Setting [1] for Ignore HTTP Cache

2015-10-15 16:01:14.384 Living Health TV[40273:587128] ITML: Setting [3] log level

2015-10-15 16:01:14.384 Living Health TV[40273:587128] ITML <Error>: Failed to load launch URL with error: Error Domain=SSErrorDomain Code=109 "Cannot connect to www.living-health.net" UserInfo={NSLocalizedDescription=Cannot connect to www.living-health.net, SSErrorHTTPStatusCodeKey=404}

Message from debugger: Terminated due to signal 15


When I run my app on the Apple TV I get this:


2015-10-15 16:08:40.171 Living Health TV[247:118841] ITML: Setting [1] for Ignore HTTP Cache

2015-10-15 16:08:40.368 Living Health TV[247:118841] ITML: Setting [3] log level

2015-10-15 16:08:40.369 Living Health TV[247:118841] ITML <Error>: SyntaxError: Unexpected token '<'...{

line = 1;

sourceURL = "http://www.living-health.net/AppleTV/js/application.js";

}



So I am not sure what is going, but the TL;DR is nothing works when I try to connect to my server. And obvously I can keep using my virtual server in my terminal to test it on the Apple TV.


Please help if you can.

Thanks

If you're getting a 404 status code, that means your server does not recognize the URL that you're requesting. There is a typo somewhere along the line.


I suggest testing the interface from a separate client - curl on the command line, or some GUI HTTP testing app (I use Hypernap but there are lots out there) to make sure your syntax is correct, request and response headers are correct etc.

Do you know if your server can dish up .js files correctly?


Are the AppleTV/js/ directories on the server permissioned for the wild?

Apple TV app not connecting to my server.
 
 
Q