• Resolved markk24

    (@markk24)


    Everything was working fine up until a few days ago. Now everyone who tries to checkout receives a message saying no shipping options are available. I have updated to the latest version of the plugin and I have left the User ID field empty like you suggested to someone else having a similar problem.

    `array (
      'error' => 'API request HTTP error. Data: {
        "service": "ONLINE",
        "response_type": "array",
        "response": {
            "headers": {},
            "body": "You do not have permission to access this page\\nIf you have found this page in error, please contact support\\nReference:22905530535690896001168037354649435606720034968299102359",
            "response": {
                "code": 401,
                "message": "Unauthorized"
            },
            "cookies": [],
            "filename": null,
            "http_response": {
                "data": null,
                "headers": null,
                "status": null
            }
        }
    }.',
      'rates' => NULL,
      'settings' => 
      array (
        'props' => 
        array (
          'plugin_id' => 'woocommerce_',
          'id' => 'usps_simple',
          'errors' => 
          array (
          ),
          'data' => 
          array (
          ),
          'supports' => 
          array (
            0 => 'settings',
          ),
          'method_title' => 'USPS Simple',
          'method_description' => 'Shows live USPS domestic rates on checkout',
          'enabled' => 'yes',
          'title' => 'USPS Simple',
          'rates' => 
          array (
          ),
          'tax_status' => 'taxable',
          'fee' => NULL,
          'minimum_fee' => NULL,
          'instance_id' => 0,
          'instance_form_fields' => 
          array (
          ),
          'instance_settings' => 
          array (
          ),
          'availability' => NULL,
          'countries' => 
          array (
          ),
          'method_order' => NULL,
          'has_settings' => NULL,
          'settings_html' => NULL,
          'sender' => '65714',
          'commercialRates' => true,
          'groupByWeight' => true,
          'apiEndpoint' => 'https://secure.shippingapis.com/ShippingAPI.dll',
          'apiUserId' => '891000005749',
        ),
        'settings' => 
        array (
          'enabled' => 'yes',
          'sender' => '',
          'user_id' => '',
          'commercial_rate' => 'yes',
          'group_by_weight' => 'yes',
          'express_mail' => '',
          't_express_mail' => 'Express',
          'express_mail_3' => 'no',
          'express_mail_2' => 'no',
          'express_mail_23' => 'no',
          'priority_mail' => '',
          't_priority_mail' => 'Priority Mail',
          'priority_mail_1' => 'yes',
          'priority_mail_33' => 'no',
          'priority_mail_18' => 'no',
          'priority_mail_47' => 'no',
          'priority_mail_48' => 'no',
          'priority_mail_49' => 'no',
          'priority_mail_50' => 'no',
          'first_class' => '',
          't_first_class' => '',
          'first_class_0A' => 'no',
          'first_class_0B' => 'no',
          'first_class_0C' => 'no',
          'first_class_0D' => 'no',
          'first_class_12' => 'no',
          'first_class_15' => 'no',
          'first_class_19' => 'no',
          'first_class_0E' => 'no',
          'first_class_61' => 'no',
          'first_class_53' => 'no',
          'first_class_78' => 'no',
          'standard_post' => '',
          't_standard_post' => 'USPS Retail Ground',
          'standard_post_4' => 'no',
          'media_mail' => '',
          't_media_mail' => '',
          'media_mail_6' => 'no',
          'library_mail' => '',
          't_library_mail' => '',
          'library_mail_7' => 'no',
          't_ground_advantage' => '',
          'ground_advantage_default' => 'yes',
        ),
      ),
      'package' => 
      array (
        'contents' => 
        array (
          'd645920e395fedad7bbbed0eca3fe2e0' => 
          array (
            'key' => 'd645920e395fedad7bbbed0eca3fe2e0',
            'product_id' => 40,
            'variation_id' => 0,
            'variation' => 
            array (
            ),
            'quantity' => 1,
            'data_hash' => 'b5c1d5ca8bae6d4896cf1807cdf763f0',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 32.0,
            'line_subtotal_tax' => 0.0,
            'line_total' => 32.0,
            'line_tax' => 0.0,
            'product' => 
            array (
              'name' => 'BA-1 Drug Detection and Identification Kit, Basic',
              'slug' => 'ba-1-drug-detection-and-identification-kit-basic',
              'price' => '32',
              'regular_price' => '32',
              'sale_price' => '',
              'weight' => '0.50625 lbs',
              'weight_lbs' => 0.50625,
              'dimensions' => '6 x 4 x 2.0125 in',
              'dimensions_in' => '6 x 4 x 2.0125',
            ),
          ),
          '107efec915fb89ceff6c0f0e53e69b54' => 
          array (
            'key' => '107efec915fb89ceff6c0f0e53e69b54',
            'product_id' => 80,
            'variation_id' => 261,
            'variation' => 
            array (
              'attribute_tests-to-include' => 'Meth, Cocaine, Amphetamine/Opiate',
            ),
            'quantity' => 1,
            'data_hash' => 'e8cfa0597e95f5a72c80239a4232cca2',
            'line_tax_data' => 
            array (
              'subtotal' => 
              array (
              ),
              'total' => 
              array (
              ),
            ),
            'line_subtotal' => 50.0,
            'line_subtotal_tax' => 0.0,
            'line_total' => 50.0,
            'line_tax' => 0.0,
            'product' => 
            array (
              'name' => 'NARTEC Triple 10 (30 Tests) - Meth, Cocaine, Amphetamine/Opiate',
              'slug' => 'nartec-triple-10-30-tests-meth-cocaine-amphetamine-opiate',
              'price' => '50',
              'regular_price' => '50',
              'sale_price' => '',
              'weight' => '1 lbs',
              'weight_lbs' => 1.0,
              'dimensions' => '6 x 4 x 4 in',
              'dimensions_in' => '6 x 4 x 4',
            ),
          ),
        ),
        'contents_cost' => 82.0,
        'applied_coupons' => 
        array (
        ),
        'user' => 
        array (
          'ID' => 1,
        ),
        'destination' => 
        array (
          'country' => 'US',
          'state' => 'MO',
          'postcode' => '65714',
          'city' => 'Nixa',
          'address' => '',
          'address_1' => '',
          'address_2' => '',
        ),
        'cart_subtotal' => '82',
        'rates' => 
        array (
        ),
      ),
      'requests' => 
      Dgm\UspsSimple\Calc\Pair::__set_state(array(
         'online' => 'API=RateV4&XML=
    <RateV4Request USERID="891000005749">
        <Revision>2</Revision>
        <Package ID="group_by_weight_0:1:0:0:0:0">
            <Service>ONLINE</Service>
            <ZipOrigination>65714</ZipOrigination>
            <ZipDestination>65714</ZipDestination>
            <Pounds>1</Pounds>
            <Ounces>8.10</Ounces>
            <Container/>
            <Width>0</Width>
            <Length>0</Length>
            <Height>0</Height>
            <Girth>0</Girth>
            <Machinable>true</Machinable>
            <ShipDate>21-Nov-2023</ShipDate>
        </Package>
    </RateV4Request>
    ',
         'standard' => NULL,
      )),
      'request' => 
      Dgm\UspsSimple\Calc\Request::__set_state(array(
         'apiUserId' => '891000005749',
         'package' => 
        Dgm\UspsSimple\Calc\Package::__set_state(array(
           'orig' => 
          Dgm\UspsSimple\Calc\Area::__set_state(array(
             'countryCode' => 'US',
             'zipCode' => '65714',
          )),
           'dest' => 
          Dgm\UspsSimple\Calc\Area::__set_state(array(
             'countryCode' => 'US',
             'zipCode' => '65714',
          )),
           'items' => 
          array (
            'd645920e395fedad7bbbed0eca3fe2e0' => 
            Dgm\UspsSimple\Calc\Item::__set_state(array(
               'product' => 
              Dgm\UspsSimple\Calc\Product::__set_state(array(
                 'weight' => 0.50625,
                 'dim' => 
                Dgm\UspsSimple\Calc\Dim::__set_state(array(
                   'length' => 6.0,
                   'width' => 4.0,
                   'height' => 2.0125,
                )),
              )),
               'quantity' => 1,
            )),
            '107efec915fb89ceff6c0f0e53e69b54' => 
            Dgm\UspsSimple\Calc\Item::__set_state(array(
               'product' => 
              Dgm\UspsSimple\Calc\Product::__set_state(array(
                 'weight' => 1.0,
                 'dim' => 
                Dgm\UspsSimple\Calc\Dim::__set_state(array(
                   'length' => 6.0,
                   'width' => 4.0,
                   'height' => 4.0,
                )),
              )),
               'quantity' => 1,
            )),
          ),
        )),
         'services' => 
        Dgm\UspsSimple\Model\Services::__set_state(array(
           'families' => 
          array (
            1 => 
            Dgm\UspsSimple\Model\ServiceFamily::__set_state(array(
               'id' => 'priority_mail',
               'title' => 'Priority Mail',
               'sort' => 1,
               'services' => 
              array (
                0 => 
                Dgm\UspsSimple\Model\RegularService::__set_state(array(
                   'family' => NULL,
                   'title' => 'Priority Mail',
                   'alwaysUseCommercialRate' => NULL,
                   'enabled' => true,
                   'id' => '1',
                )),
              ),
            )),
            3 => 
            Dgm\UspsSimple\Model\ServiceFamily::__set_state(array(
               'id' => 'ground_advantage',
               'title' => 'USPS Ground Advantage',
               'sort' => 3,
               'services' => 
              array (
                0 => 
                Dgm\UspsSimple\Model\GroundAdvantage::__set_state(array(
                   'family' => NULL,
                   'title' => 'USPS Ground Advantage',
                   'alwaysUseCommercialRate' => NULL,
                   'enabled' => true,
                   'id' => 'default',
                )),
              ),
            )),
          ),
           'retailGroundEnabled' => false,
        )),
         'groupByWeight' => true,
         'commercialRates' => true,
      )),
      'responses' => NULL,
      'combinedResponse' => NULL,
    )`
Viewing 1 replies (of 1 total)
  • Plugin Author Dan

    (@dangoodman)

    The USPS API responds with the following error:

    You do not have permission to access this page
    If you have found this page in error, please contact support
    Reference:22905530535690896001168037354649435606720034968299102359

    Never seen this error before. It looks like they banned your site IP address. You should contact their support to get help.

    It would be great if you could post an update here after contacting USPS support. Just for anybody else experiencing the same issue and reading this thread.

Viewing 1 replies (of 1 total)
  • The topic ‘No Shipping Options Available’ is closed to new replies.