canadasatellite-ca / site

The canadasatellite.ca website (Magento 2)
https://upwork.com/fl/mage2pro
0 stars 1 forks source link

`Mageside_CanadaPostShipping`: «We are unable to provide you with a price at this time» #257

Open dmitrii-fediuk opened 3 years ago

dmitrii-fediuk commented 3 years ago

Related to https://github.com/canadasatellite-ca/bambora/issues/13, https://github.com/canadasatellite-ca/bambora/issues/14

{
    "Mage2.PRO": [
        {
            "IP Address": "46.137.238.207",
            "mage2pro/core": "7.7.1",
            "Magento": "2.3.5-p2",
            "PHP": "7.2.34-8+ubuntu16.04.1+deb.sury.org+1",
            "Post": [],
            "Referer": "https://www.canadasatellite.ca/checkout/",
            "Request Method": "POST",
            "URL": "https://www.canadasatellite.ca/rest/en/V1/guest-carts/ovGtdAWIiWDi2Y6NYggJhA5wuNpTUVWO/payment-information",
            "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36"
        }
    ],
    "request": {
        "get-rates-request": {
            "mailing-scenario": {
                "destination": {
                    "domestic": {
                        "postal-code": "A1A1A1"
                    }
                },
                "expected-mailing-date": "2021-09-19",
                "origin-postal-code": "T2E3S1",
                "parcel-characteristics": {
                    "mailing-tube": false,
                    "unpackaged": false,
                    "weight": 0.5
                },
                "quote-type": "counter"
            }
        }
    },
    "result": {
        "debug": {
            "result": {
                "errors": [
                    {
                        "code": "7010",
                        "error": "We are unable to provide you with a price at this time.  Please try again later."
                    }
                ]
            }
        }
    }
}
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:472
Callee:      df_log_l
*****************1******************
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:299
Callee:      Mageside\CanadaPostShipping\Model\Carrier::_doRatesRequest
*****************2******************
Location:    app/code/Mageside/CanadaPostShipping/Model/Carrier.php:280
Callee:      Mageside\CanadaPostShipping\Model\Carrier::_getQuotes
*****************3******************
Location:    vendor/magento/module-shipping/Model/Shipping.php:337
Callee:      Mageside\CanadaPostShipping\Model\Carrier::collectRates
*****************4******************
Location:    vendor/magento/module-shipping/Model/Shipping.php:244
Callee:      Magento\Shipping\Model\Shipping::collectCarrierRates
*****************5******************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Shipping\Model\Shipping::collectRates
*****************6******************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Shipping\Model\Shipping::___callParent
*****************7******************
Location:    app/code/MageSuper/Casat/Plugin/Shipping/Model/Shipping.php:21
Callee:      Magento\Shipping\Model\Shipping::Magento\Framework\Interception\{closure}
*****************8******************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      MageSuper\Casat\Plugin\Shipping\Model\Shipping::aroundCollectRates
*****************9******************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Shipping\Model\Shipping::Magento\Framework\Interception\{closure}
*****************10*****************
Location:    generated/code/Magento/Shipping/Model/Shipping/Interceptor.php:26
Callee:      Magento\Shipping\Model\Shipping::___callPlugins
*****************11*****************
Location:    vendor/magento/module-quote/Model/Quote/Address.php:1068
Callee:      Magento\Shipping\Model\Shipping::collectRates
*****************12*****************
Location:    vendor/magento/module-quote/Model/Quote/Address.php:1002
Callee:      Magento\Quote\Model\Quote\Address::requestShippingRates
*****************13*****************
Location:    vendor/magento/module-quote/Model/Quote/Address/Total/Shipping.php:84
Callee:      Magento\Quote\Model\Quote\Address::collectShippingRates
*****************14*****************
Location:    vendor/magento/module-quote/Model/Quote/TotalsCollector.php:274
Callee:      Magento\Quote\Model\Quote\Address\Total\Shipping::collect
*****************15*****************
Location:    vendor/magento/module-quote/Model/Quote/TotalsCollector.php:148
Callee:      Magento\Quote\Model\Quote\TotalsCollector::collectAddressTotals
*****************16*****************
Location:    vendor/magento/module-quote/Model/Quote.php:1995
Callee:      Magento\Quote\Model\Quote\TotalsCollector::collect
*****************17*****************
Location:    vendor/magento/module-quote/Model/Quote/Payment.php:187
Callee:      Magento\Quote\Model\Quote::collectTotals
*****************18*****************
Location:    vendor/magento/module-quote/Model/PaymentMethodManagement.php:79
Callee:      Magento\Quote\Model\Quote\Payment::importData
*****************19*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Quote\Model\PaymentMethodManagement::set
*****************20*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Quote\Model\PaymentMethodManagement::___callParent
*****************21*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Quote\Model\PaymentMethodManagement::Magento\Framework\Interception\{closure}
*****************22*****************
Location:    generated/code/Magento/Quote/Model/PaymentMethodManagement/Interceptor.php:26
Callee:      Magento\Quote\Model\PaymentMethodManagement::___callPlugins
*****************23*****************
Location:    vendor/magento/module-quote/Model/GuestCart/GuestPaymentMethodManagement.php:49
Callee:      Magento\Quote\Model\PaymentMethodManagement::set
*****************24*****************
Location:    vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php:138
Callee:      Magento\Quote\Model\GuestCart\GuestPaymentMethodManagement::set
*****************25*****************
Location:    vendor/magento/module-checkout/Model/GuestPaymentInformationManagement.php:93
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::savePaymentInformation
*****************26*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::savePaymentInformationAndPlaceOrder
*****************27*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::___callParent
*****************28*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::Magento\Framework\Interception\{closure}
*****************29*****************
Location:    generated/code/Magento/Checkout/Model/GuestPaymentInformationManagement/Interceptor.php:26
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::___callPlugins
*****************30*****************
Location:    :
Callee:      Magento\Checkout\Model\GuestPaymentInformationManagement::savePaymentInformationAndPlaceOrder
*****************31*****************
Location:    vendor/magento/module-webapi/Controller/Rest/SynchronousRequestProcessor.php:95
Callee:      call_user_func_array
*****************32*****************
Location:    vendor/magento/module-webapi/Controller/Rest.php:188
Callee:      Magento\Webapi\Controller\Rest\SynchronousRequestProcessor::process
*****************33*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Webapi\Controller\Rest::dispatch
*****************34*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Webapi\Controller\Rest::___callParent
*****************35*****************
Location:    app/code/Cart2Quote/Features/Feature/ApiAccess/Rest.php:2
Callee:      Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************36*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      Cart2Quote\Features\Feature\ApiAccess\Rest::aroundDispatch
*****************37*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Webapi\Controller\Rest::Magento\Framework\Interception\{closure}
*****************38*****************
Location:    generated/code/Magento/Webapi/Controller/Rest/Interceptor.php:26
Callee:      Magento\Webapi\Controller\Rest::___callPlugins
*****************39*****************
Location:    vendor/magento/framework/App/Http.php:116
Callee:      Magento\Webapi\Controller\Rest::dispatch
*****************40*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:58
Callee:      Magento\Framework\App\Http::launch
*****************41*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:138
Callee:      Magento\Framework\App\Http::___callParent
*****************42*****************
Location:    vendor/canadasatellite/core/Plugin/Magento/Framework/App/Http.php:18
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************43*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:135
Callee:      CanadaSatellite\Core\Plugin\Magento\Framework\App\Http::aroundLaunch
*****************44*****************
Location:    vendor/magento/framework/Interception/Interceptor.php:153
Callee:      Magento\Framework\App\Http::Magento\Framework\Interception\{closure}
*****************45*****************
Location:    generated/code/Magento/Framework/App/Http/Interceptor.php:26
Callee:      Magento\Framework\App\Http::___callPlugins
*****************46*****************
Location:    vendor/magento/framework/App/Bootstrap.php:261
Callee:      Magento\Framework\App\Http::launch
*****************47*****************
Location:    pub/index.php:40
Callee:      Magento\Framework\App\Bootstrap::run
dmitrii-fediuk commented 3 years ago

This error is returned along with an HTTP code of 202, which indicates that your application should sleep for a second and try the same request again. This message should not be presented to the end user.

https://www.canadapost-postescanada.ca/info/mc/business/productsservices/developers/messagescodetables.jsf

I guess it is occured because the spammer makes too many requests. It could be solved by https://github.com/canadasatellite-ca/bambora/issues/14