Skip to content

[BUG]UPS Auth | Uncaught TypeError: curl_strerror(): Argument #1 ($error_code) must be of type int, CurlHandle given #4964

@lc-excell

Description

@lc-excell

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Uncaught TypeError: curl_strerror(): Argument #1 ($error_code) must be of type int, CurlHandle given.

Mage_Usa_Model_Shipping_Carrier_UpsAuth
Image

Expected Behavior

I think it should be:

$code = curl_errno($ch);
$description = curl_strerror($code);

And should throw exception cURL Error: (6) Couldn't resolve host name - "Could not resolve host: wwwcie.ups.com" in /app/app/Mage.php:665

Steps To Reproduce

Ups settings:
UPS Type: United Parcel Service REST

  1. Checkout
  2. Complete the Billing & Shipping Address form

Environment

- OpenMage:
- php:

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions