This week's book giveaways are in the AI and JavaScript forums.
We're giving away four copies each of GANs in Action and WebAssembly in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of GANs in ActionE this week in the AI forum
or WebAssembly in Action in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
Sheriffs:
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Joe Ess
  • salvin francis
  • fred rosenberger

AJAX ERROR : 412 Precondition failed?

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I've been trying to solve an error that I can't reproduce very easily. Whenever I load the website I'm currently developing, the error callback function is being triggered by AJAX with a "precondition failed" error. I've been reading online how to solve the error but I have found nothing. I read that this is caused by the server (I'm using Apache Tomcat 6.0.26) returning false on one my request headers.

What's interesting and peculiar is the fact that I can't reproduce the error and the error is only present on Internet Explorer 7 & 8 and it happens very rarely. ( only on start-up once per day let's say?)

I'm not even sure if this is the right thread to put this under, but since the 412 error code is something to do with request headers and the server that validates the request headers I thought I'd start here.

I'd be grateful if you could help.

Andreas
 
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
Sauce Labs - World's Largest Continuous Testing Cloud for Websites and Mobile Apps
https://coderanch.com/t/722574/Sauce-Labs-World-Largest-Continuous
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!