Problem with new(?) image server

Post here any issues with the API or feature requests
Post Reply
EmberMediaManager
Posts: 12
Joined: Thu May 15, 2014 9:07 pm

Problem with new(?) image server

Post by EmberMediaManager »

Hi

If i do a request to your server to get information about the image that i will download, your server don't send me content-lenghth in header. The value is always -1.

Do you see a way to fix this on your new(?) image server?

That is the information i've found about this issue:
Expected behavior - property returns content length as set by the server, so if that header is not set you get -1 (which is likely behavior for large files that are streamed from server).
The ContentLength property contains the value of the Content-Length header returned with the response. If the Content-Length header is not set in the response, ContentLength is set to the value -1
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Problem with new(?) image server

Post by Kode »

Can you give me an example of the kind of request you do? I'm not 100% sure but it's probably something to do with CloudFlare caching the images maybe, however it's hard to say without someway to reproduce it.

If I hit http://assets.fanart.tv/fanart/movies/1 ... 817504.png in chrome and look at the headers it says Content-Length:130336

If you have gchat/gtalk/hangouts pm me your username and we can have a chat about it
EmberMediaManager
Posts: 12
Joined: Thu May 15, 2014 9:07 pm

Re: Problem with new(?) image server

Post by EmberMediaManager »

Hi

i have code a small sample application to check the server response: http://embermediamanager.org/release/FanartTV.rar
If you have VisualStudio you can load the project for direct debugging. If not, you can start the "FanartTV.exe" in .\Bin\Debug folder.
If you add another URL to the text field, the app will display the ContentLength and image.

I will be back in 30min, maybe we can use Skype or gTalk.
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Problem with new(?) image server

Post by Kode »

You can get me on gtalk with kodestar (at) gmail (dot) com
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Problem with new(?) image server

Post by Kode »

Hi, I used the .exe not sure if it was something I did (I did change the page rule but not sure if that will have made a difference) but it seems to work fine for assets.fanart.tv
EmberMediaManager
Posts: 12
Joined: Thu May 15, 2014 9:07 pm

Re: Problem with new(?) image server

Post by EmberMediaManager »

Can you tell me the URL for a cross check?

Sorry, gtalk is not working (too long time not used).
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Problem with new(?) image server

Post by Kode »

I do have skype if you want to give me your id
EmberMediaManager
Posts: 12
Joined: Thu May 15, 2014 9:07 pm

Re: Problem with new(?) image server

Post by EmberMediaManager »

my skype: [removed]
User avatar
Kode
Site Admin
Site Admin
Posts: 353
Joined: Wed Dec 18, 2013 11:34 am

Re: Problem with new(?) image server

Post by Kode »

Should be fixed now
Post Reply