Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

  2. #2
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Canada Post server change

    Thanks for the update ... this is always a help to others when unexpected surprises happen ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

  5. #5
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Canada Post server change

    Lovely ... makes me want to move up north ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

  8. #8
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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 ...
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  9. #9
    Join Date
    Jan 2004
    Posts
    66,444
    Plugin Contributions
    279

    Default 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.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  10. #10
    Join Date
    Jun 2005
    Location
    Kelowna, BC Canada
    Posts
    1,075
    Plugin Contributions
    6

    Default 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

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Cannot reach Canada Post Server - went down at 6:30pm
    By imfsub12 in forum General Questions
    Replies: 5
    Last Post: 4 Sep 2010, 09:41 PM
  2. Canada post Shipping module using yahoo server
    By Candy in forum Addon Shipping Modules
    Replies: 1
    Last Post: 22 Jan 2010, 11:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg