Shopify/active_shipping — pull request #135 by frahugo (2014-01-11 03:03:50+00:00)
Title: FedEx api v13: REXML::ParseException: #<NoMethodError: undefined method `[]' for nil:NilClass

This happens when I'm getting the rates from FedEx. The code assumes the XML will have a version in the xml namespace, such as:

SUCCESS
...

But now the responses I get from the TEST FedEx environment is:

WARNING
...

Remote tests in active_shipping were indeed failing with my FedEx Developer credentials. So I made them green by cleaning up the XML response only if xmlns:v[0-9] is found in the XML.

Now I have no idea if this will work well with the FedEx production environment. And I find that strange that I would be the first one to have problems with the FedEx api. So maybe someone at Shopify should first confirm using their credentials that the remote tests are failing on their side before accepting this pull request.

Cheers