Skip to content
This repository has been archived by the owner on Jun 13, 2018. It is now read-only.

Issue with fetching UPS rates for Bermuda #480

Open
jamiemtdwyer opened this issue Feb 7, 2017 · 0 comments
Open

Issue with fetching UPS rates for Bermuda #480

jamiemtdwyer opened this issue Feb 7, 2017 · 0 comments

Comments

@jamiemtdwyer
Copy link

This issue was forwarded from a partner:

The issue is this: When you try to get rates from UPS with Active Shipping using an origin address in Bermuda, it throws the following error:

Failure: This measurement system is not valid for the selected country

We believe that the root of the problem is line 128 or Active Shipping's UPS.rb file, which defines what it calls "IMPERIAL_COUNTRIES." That list does not contain the country code for Bermuda ("BM").

IMPERIAL_COUNTRIES = %w(US LR MM)

It seems the UPS API demands imperial units be used when the origin is Bermuda--at least adding "BM" to line 128 eliminates the error when fetching UPS rates with a Bermuda origin address.

@jonathankwok @kmcphillips

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant