can’t read "client_list": no such variable

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf can’t read "client_list": no such variable

  • Creator
    Topic
  • #50912
    Randall Constant
    Participant

      I’m getting a tcl call out error 302. I have posted more of the error detail below. As near as I can tell nothing is wrong. This is a standard static pass with manipulation whatsoever. Yet the message keeps failing. I cannot for the life of me figure out why. I’d appreciate any advice. This very same thread has processed of 70 thousand other messages with no problem, but its on the raw pass that it freaks out.

            msgId   = message0

             proc    = ‘broadcaster’

             args    = ”

             result  = ‘can’t read “client_list”: no such variable’

             errorInfo: ‘

      can’t read “client_list”: no such variable

         while executing

      “foreach cli $client_list {

                                     # cli is either a single number or a three element list

                                     # lindex 0 gets the connection ID in either case

                                     set co…”

         (“run” arm line 6)

    Viewing 1 reply thread
    • Author
      Replies
      • #67994
        John Perks
        Participant

          Echo your $client_list before the foreach loop, I suspect it is not initialized.

          If it is a valid scenario that client_list is not initialized, then do a catch {set client_list} catch_return and on error initialize client_list to null before hand.  Your loop list can be null, it just has to exist to prevent the tcl error.

        • #67995
          garry r fisher
          Participant

            Hi,

            I may be reading too much into this but one thing to check is whether there is a pre or post tps proc on the xlate config. It maybe that client_list is been set up there and used further down stream where on a raw pass it is not defined.

            Otherwise follow John’s excellent advice.

            Garry

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.