Giter Club home page Giter Club logo

Comments (3)

rsuliteanu avatar rsuliteanu commented on June 12, 2024

Sorry, to be clear, the exception occurs on the GetRates call:

            // Setup package and destination/origin addresses
            var packages = new List<Package>();
            // Package(length, width, height, weight, insured value)
            packages.Add(new Package(8, 8, 6, weight, 100));

            string shipToCountry = GetCountry(shipZip.Replace(" ", string.Empty));

            var origin = new Address("", "", originZip, "US");
            var destination = new Address("", "", shipZip, shipToCountry);

            // Create RateManager
            var rateManager = new RateManager();
            rateManager.AddProvider(new UPSProvider(upsLicenseNumber, upsUserId, upsPassword));

            // Call GetRates()
            var shipment = rateManager.GetRates(origin, destination, packages);

from shippingrates.

alexeybusygin avatar alexeybusygin commented on June 12, 2024

Does it work if you open the production or development URL in your browser on the development machine?
https://wwwcie.ups.com/ups.app/xml/Rate for dev
https://onlinetools.ups.com/ups.app/xml/Rate for production

from shippingrates.

rsuliteanu avatar rsuliteanu commented on June 12, 2024

When you say, "Does it work...". I entered those URL's into Firefox on my dev system and got back a response for each (see attached file). My code is just calling the library's GetRates(origin, dest, packages) method. Nothing has changed there, but it has been a long time since I've worked on this app and for whatever reason I'm seeing the timeout. I plan to publish the code to my Azure staging server and confirm things are still working in that environment, but I'd love to be able to debug locally...

Thanks for the help! I really appreciate it.
UPS URL Responses.txt

from shippingrates.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.