Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Canada Post server change

Canada Post server change

Locked

Views: 2,641

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
19 Jan 2007, 9:04 PM
#1
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Canada Post server change

If you can believe it, they made the change without telling anyone...

But anyone using the CanadaPost shipping module will have to change their settings. As of last Monday, they switched (finally) to a DNS system. Either method worked through the week, but as of today they changed their IP (again, without telling their customers).

Instead of using 216.191.36.73 for the production server, you must now use: sellonline.canadapost.ca

Port is the same: 30000

I'll try to make the minor change to the contrib and re-upload to the downloads section.

  • Steven
19 Jan 2007, 9:49 PM
#2
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

I downloaded the latest contrib (version 1.3.7) from the downloads section and made the changes and re-uploaded as version 1.3.7.1

There are NO functional differences! If you have version 1.3.7 (of the CanadaPost contrib) then there is no need for you to upgrade... simply log into your admin->Modules->Shipping and change the server from the ip address to sellonline.canadapost.ca and you're done.

The only changes I made were some clarifications in the readme file and the admin instructions... and changed the default address to sellonline.canadapost.ca

  • Steven
19 Jan 2007, 11:43 PM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Canada Post server change

Thanks for the update ... this is always a help to others when unexpected surprises happen ... :lamo:

19 Jan 2007, 11:53 PM
#4
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

My pleasure.

I find it incredible that CP would make a change like this without alerting their customers. The only reason I found out was I had a slew of customer complaints that they couldn't checkout. When I tried myself, sure enough the shipping module was failing. I phoned CP and they said they decided to make the change on Monday. When I asked why I wasn't told... he gave me a "pass the buck" response about it not being his job to alert everyone and wasn't sure who was responsible.

In any event, I advise all Canadian shop owners using this module to make the change ASAP!

One thing... I noticed it slows the checkout process tremendously :( Since making the change, it now takes up to 10 seconds or more to get a return from the CP servers instead of less than a second previously.

I imagine you could use IP addresses still, but you'll have to keep up with the one they are using. At this moment, it seems to be 66.110.6.131 but that could change in a minute, an hour... a year or never.

  • Steven
19 Jan 2007, 11:56 PM
#5
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

FYI - I just tested...

using the domain name, it took an average 7.5 seconds (on 10 tries) to get the response from CP.

using the IP address, it took an average of 1.3 seconds.

  • Steven
19 Jan 2007, 11:57 PM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Canada Post server change

Lovely ... makes me want to move up north ... :lamo:

19 Jan 2007, 11:58 PM
#7
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

which gets me to thinking...

I wonder if there could be some way to re-write the module so that it detects the IP the first time it is accessed (using the domain) and that IP is stored. Then that IP is used instead up until an error occurs, and then the system would auto-check the IP again and use that one, etc.

Just a thought.

  • Steven
20 Jan 2007, 3:51 AM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post server change

It's probably prudent to test the module on another server which uses a different NS lookup server to resolve the name to the IP address ... just to rule out whether the slowness is a result of your own webserver's access to NS services or otherwise.

Yes, one could probably rewrite to set a session variable the first time it successfully looks up an IP and is able to communicate ... but really it would be better if the hosting server was better tuned and maybe even cached its own NS lookup data etc.

On second thought, the session variable approach probably wouldn't benefit all that much, since session details are customer-specific. So, it would help a customer if they were making several visits to the shipping or estimator pages, but that's all.

So, recoding would require storing the last-resolved date and the IP used at that time. Then set a "check" interval. And if a failure occurs when attempting to access (which likely will cause a 30-second timeout), then a new attempt to resolve would have to be initiated ... all while the customer is waiting ...

... hence the suggestion that the server is the place to fix an NS lookup problem, rather than code ...

20 Jan 2007, 3:52 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Canada Post server change

BTW - thanks for researching and posting the update.
I've seen a couple posts about the change this week, but haven't had time to investigate.

20 Jan 2007, 7:35 AM
#10
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

No problem at all DrB.

Thanks for the suggestion re: host ns lookup. that didn't occur to me that it could be my host's issue. I just figured it made sense that it would be slower since there is an extra step, but I'll email the help desk and see what they can do.

  • Steven
20 Jan 2007, 7:11 PM
#11
verdon avatar

verdon

Zen Follower

Join Date:
May 2004
Location:
Northern Ontario, Canada
Posts:
373
Plugin Contributions:
0

Re: Canada Post server change

s_mack:

I find it incredible that CP would make a change like this without alerting their customers...

LOL, don't forget that CP is an ancient crown corporation with one of the most arrogant and aggressive unions in the country. Having worked in a local distribution centre at one time in the distant past (as a non-union contractor) it doesn't surprise me a bit ;)

20 Jan 2007, 7:22 PM
#12
wondergirl avatar

wondergirl

Zen Follower

Join Date:
Jul 2005
Posts:
108
Plugin Contributions:
0

Re: Canada Post server change

s_mack:

I noticed this post today, and my cart's canada post shipping module settings still reflect the 216.191.36.73 IP, and it's still working here. Is this a "gradual" turnover that you know of?

20 Jan 2007, 7:57 PM
#13
s_mack avatar

s_mack

Totally Zenned

Join Date:
Jun 2005
Location:
Kelowna, BC Canada
Posts:
1,033
Plugin Contributions:
4

Re: Canada Post server change

yes, it is.

There was a period yesterday that your site wasn't working - whether you knew it or not - because the 216 ip was totally down. It appears to be back up now. Probably due to customer complaints. Still, its a good idea to make the switch.

  • Steven