Can you also record the failed url here? Would make it easier to track down url encoding issues.