When clicking on listing links from an email sent via Constant Contact, which masks the links with a tracking code that redirects to the given link, the accessed pages produce a server error 500. Most of the page loads, except for the dynamic listing content which the page is meant to display. I've encountered this error NOT from Constant Contact links before, just browsing the site, but our IT guy says "the initial URL is the tracking URL with some java script in it"... then goes on to say that it has to do with java not being updated on our computers, and nothing to do with the server. I think it's just that the server times out before the redirect goes through. Or either way, there's no "javascript in the URL", and javascript and java aren't at all the same thing.

I'd greatly appreciate if someone could help shed some light on what is actually going on here.

See, the initial Constant Contact links look like this:
http://r20.rs6.net/tn.jsp?f=001z7k8t_ktkq_Kgjb6oUCGE25-wLbQOTyP2qtFdWeHpksY8M6c8a3YBKqSSksqdrSR6r5v6g8SPvZg6Y_rsioK4L_ImzStwhewgDhxSBkXR-pgGBX4UxffL52aUybWq7DWOQqts7A14XyLibj3uxR16I2Ja1rXOK1qGbGMBVR_bdQR5IBRTlrB4-bzlizcEW-0bxD3YxZw9gEQ2CORxadlVbQAb5dkqgNFqOu0cPh0NGiQ6n20LPqNWcdSH4_k-VFEv-VkpLHqAoY=&c=1o0_rd9BgTaTWgFZEMcOmhhRsV_4ba_BFc37-icyjV03EV9IE8cUVw==&ch=8T0E5b0urUObuyz3eLOpmV4Qc4QacWH-uslCofeuylK43nqqx4mlMA==

Anyone see any javascript in that URL? I don't. Just a long tracking code, URL QUERIES (i.e., ?f=...&c=...), which are not JS. Sure it's being processed by a Java Server Page, but once it redirects that shouldn't have anything to do with it anymore, should it?

If that redirects to a page that produces a SERVER ERROR, is the responsibility not on the website's part to handle the request? The links are correct. If the listing doesn't show up and it says server error, it does when you refresh. Plus I've seen the same error just when browsing the site, which disappears upon refresh. So... can anyone explain this actually for me please?

Thanks...

Regarding the 500 error, check the error log of your server, an external redirect cannot generate an error like that, unless your server config is accepting some headers set from remote.

A part that, if you look at f, c and ch values, these are base64 strings, concatenated by - characters, by splitting them and decoding you can get some random characters, probably due to a particular character encoding... These kind of string can be used to bundle code or images into source codes, but in your case, this is not the reason of the error: it could if the code was appended to the final link, i.e.:

So, I would check the logs of the server, of the database and the source code that generates the dynamic listing. Bye!

Yeah, unfortunately I don't have access to the source code, and nobody else cares to find out or have our programmer look into it, they'd rather just blame it on Constant Contact. I figured to find out the actual source of the problem the code needs to be debugged, logs checked... that sort of thing... on our server's side, I just wanted to clarify that it has nothing to do with the redirect links, which it obviously doesn't. Thanks. That's all I have the power to do. Still no one cares. You have no idea how many errors and bugs there are throughout our site all the time. It's straight ridiculous.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.