Forum Moderators: open

Message Too Old, No Replies

500 Errors for Images

Keep getting these in my logs

         

davemarks

7:05 pm on Sep 13, 2003 (gmt 0)

10+ Year Member



Its a Windows 2000 Server, and i keep seeing 500 errors for images that are present on the server and always show fine.

The only thing I can think of is that they are rollovers working off javascript, but why the hell would they give 500 Server errors?

Any ideas?

macrost

11:42 pm on Sep 13, 2003 (gmt 0)

10+ Year Member



davemarks,
That is weird... even a js rollover wouldn't generate a 500 error... are you perhaps using asp to send the image to the browser?

Mac

Xoc

2:10 am on Sep 14, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



500 errors are server side errors only. It means that some piece of code on the server generated an error that wasn't caught. It might be some script code, or it might be some component, such as the cdonts email component that is generating the error. It can also mean that something about IIS is messed up.

davemarks

11:21 am on Sep 14, 2003 (gmt 0)

10+ Year Member



Thanks, I understand what a 500 error is thats why i'm so confused. The image in question is on a asp page, but asp is not used to get the image, that would be downloaded in a seperate http connection, hence in the logs you see a line for the page then each image/css file etc.

Its just these two images that create a problem, not all the time but frequently.

I didn't think it would be javascript as thats client side, but its the last thing i can think off

Apparently theres nothing in the IIS events that suggest a problem either :(

martin68

7:40 pm on Sep 17, 2003 (gmt 0)

10+ Year Member



If you go into your Tools¦Internet Options¦Advanced menu, under Browsing, uncheck the Show friendly HTTP error messages and you will be able to specifically see what page and line number your error is on. This will help tremendously when troubleshooting your pages......

bcolflesh

7:51 pm on Sep 17, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are the paths to those images in the code relative or absolute? Some browsers choke on the relative Javascript paths - make them absolute in your code and see what happens.

The 500 error shouldn't be returned for that kind of problem though - weird. Can you post the exact line from your log?

davemarks

7:36 pm on Sep 18, 2003 (gmt 0)

10+ Year Member



>If you go into your Tools¦Internet Options¦Advanced menu, under Browsing, uncheck the Show friendly HTTP error messages and you will be able to specifically see what page and line number your error is on. This will help tremendously when troubleshooting your pages......

As i said before i understand all this, the 500 error is apearing in my logs, nothing is seen to the browser/surfer

I'll try and post a line from the log, its nothing special though - looks like every other error

Javascript is relative, not absolute but i've never seen an absolute link to an image in a js file...

Plus if it was the browser choking then it wouldn't even try and retrieve the file. Also i don't remember the user agent looking like anything out of the ordinary

I think this is more a problem with the server or the image than the code.

jim_w

7:57 pm on Sep 18, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Maybe it is some service causing the error and because the service software wasn't written to allow that service to log errors, it just looks like it is the image files?

[edit]
Remember it is Microsoft software. How many time has Windows, IE, etc., etc., etc., been patch because of bugs?
[/edit]