Looks like there might have been an API change with Fedex. See this post on
the dev list -
http://groups.google.com/group/satchmo-developers/browse_thread/thread/e71cf780827ffc11

If the patch works, let me know and we can apply to tip.

-Chris

On Tue, Mar 29, 2011 at 1:08 PM, Matt M <[email protected]> wrote:

> Looks like the fed ex is not returning "EffectiveNetDiscount".
>
> On Tue, Mar 29, 2011 at 10:49 AM, mattym <[email protected]> wrote:
>
>> Hi all.
>> I implemented a satchmo cart. The store is live. It has been in
>> production for six months.
>> As of a couple days ago check out throws 'list index out of range'
>> error. This happens after submitting the basic information page. I put
>> the cart in debug mode but the logs do not look unusual. I have
>> calculations returned from fed ex. Below is the traceback.
>>
>> Has anyone experienced something similar?
>>
>> Traceback (most recent call last):
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/django/core/handlers/
>> base.py", line 92, in get_response
>>   response = callback(request, *callback_args, **callback_kwargs)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/django/views/
>> decorators/cache.py", line 44, in _wrapped_view_func
>>   response = view_func(request, *args, **kwargs)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/modules/authorizenet/views.py", line 6, in
>> pay_ship_info
>>   return payship.credit_pay_ship_info(request,
>> config_get_group('PAYMENT_AUTHORIZENET'))
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/views/payship.py", line 186, in credit_pay_ship_info
>>   return base_pay_ship_info(request, payment_module,
>> credit_pay_ship_process_form, template)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/views/payship.py", line 177, in base_pay_ship_info
>>   results = form_handler(request, contact, working_cart,
>> payment_module)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/views/payship.py", line 107, in
>> credit_pay_ship_process_form
>>   form = _get_form(request, payment_module, *args, **kwargs)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/views/payship.py", line 64, in _get_form
>>   form = formclass(request, payment_module, *args, **kwargs)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/forms.py", line 412, in __init__
>>   super(CreditPayShipForm, self).__init__(request, paymentmodule,
>> *args, **kwargs)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/forms.py", line 322, in __init__
>>   shipping_choices, shipping_dict = _get_shipping_choices(request,
>> paymentmodule, self.tempCart, self.tempContact,
>> default_view_tax=default_view_tax)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/payment/forms.py", line 85, in _get_shipping_choices
>>   method.calculate(cart, contact)
>>
>>  File "/home/hiiq/webapps/myshop2/lib/python2.5/Satchmo-0.9_0-
>> py2.5.egg/shipping/modules/fedex/shipper.py", line 245, in calculate
>>   this_discount =
>>
>> float(response.documentElement.getElementsByTagName('EffectiveNetDiscount')
>> [0].firstChild.nodeValue)
>>
>> IndexError: list index out of range
>>
>> Thanks, Matt
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Satchmo users" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/satchmo-users?hl=en.
>>
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "Satchmo users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/satchmo-users?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Satchmo users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/satchmo-users?hl=en.

Reply via email to