RE: [coldbox:16823] [Coldbox 3.5.2] onError firing twice with http status code set to 500.

Dump out the response to the first cfhttp call just to make sure something isn’t changing it to a 301 or 302 header code (redirect). You could also try adding redirect=false which turns off the behavior to follow redirects just to make sure.

Very interesting indeed. It it truly does appear to be the same cfhttp call that is hitting the remote URL twice, I would be tempted to attach a Java debugger to your CF instance and poke around.

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com