Skip to main content
June 30, 2009
Question

401 Unauthorized Error displays in Firebug

  • June 30, 2009
  • 2 replies
  • 1532 views

Hope someone can help... I have several items on my page that use binding to retrieve content/data. So for instance, I have a cfgrid that's bound to a cfc and when the grid displays I see in firebug that 3 requests were made to the cfc to retrieve the data.  The first two fail and display "401 Unauthorized" in the firebug window and the third request completes successfully.  I'm getting this same sort of error with binding cfdivs to content pages etc.  Any ideas what may be causing this?   I've never come across this before and have been using binding in this fashion with no problems until now.

    This topic has been closed for replies.

    2 replies

    July 15, 2009

    After responding I found this post on StackOverflow

    http://stackoverflow.com/questions/628143/why-do-web-service-or-http-handler-calls-give-two-unauthorized-errors-and-then-a

    I'm pretty sure this is my issue. As I am definately using an IIS server with NTLM authorization and it appears the unauthorized attempts are simply authentication negotiations. Thanks to the posters on that site for this clarification.

    July 15, 2009

    I too see this behavior. One possible solution is to upgrade firebug to the most recent version this worked for a friend, but i still see the same issue following updating on my mac as he was a on a PC. Not a fix but worth a shot.

    What's interesting is that following the two failed attempts to load the data the response of the third call is the json x 3. if the JSON returns true the response tab in firebug would say true true true. yet when you access the object there is only one response in the returned data despite firebug displaying it x3.


    could the fact that the website requires simple domain authentication rather than allowing anonymous access make a difference??

    thanks.

    July 15, 2009

    Thanks for the response. I too believe it's an authentication issue as the application is being hosted in our intranet web space. IE doesn't seem to throw any Javascript errors as IE seems to be able to pass through the authentication. If I discover what the real problem is with a solution, I'll be sure to let you know.

    Thanks again,

    Bill

    Date: Wed, 15 Jul 2009 09:54:35 -0600

    From: forums@adobe.com

    To: wf_miller@msn.com

    Subject: 401 Unauthorized Error displays in Firebug

    I too see this behavior. One possible solution is to upgrade firebug to the most recent version this worked for a friend, but i still see the same issue following updating on my mac as he was a on a PC. Not a fix but worth a shot.

    What's interesting is that following the two failed attempts to load the data the response of the third call is the json x 3. if the JSON returns true the response tab in firebug would say true true true. yet when you access the object there is only one response in the returned data despite firebug displaying it x3.

    could the fact that the website requires simple domain authentication rather than allowing anonymous access make a difference??

    thanks.

    >