Shipping rates not showing

This topic contains 3 replies, has 2 voices, and was last updated by Anindo Anindo 1 year, 6 months ago.

  • Author
    Posts
  • #71335
    gabriel.catastrofe
    gabriel.catastrofe
    Participant

    I’m developing a small WooCommerce shop and when trying to use this plugin I can’t get it to return the shipping rates. The request is really slow and it returns nothing. I also noticed that the same bug is happening in your demo store (http://woocommercefedexshipping.pluginhive.com/shop), but the request is not as slow. I enabled the plugin debugger and got the following request:

    Array
    (
        [WebAuthenticationDetail] => Array
            (
                [UserCredential] => Array
                    (
                        [Key] => E4Vks74aoqGk2f6A
                        [Password] => aLSyDWL7lZOM0G0ZRWABCAMll
                    )
    
            )
    
        [ClientDetail] => Array
            (
                [AccountNumber] => 510087240
                [MeterNumber] => 119038592
            )
    
        [TransactionDetail] => Array
            (
                [CustomerTransactionId] =>  *** WooCommerce Rate Request ***
            )
    
        [Version] => Array
            (
                [ServiceId] => crs
                [Major] => 22
                [Intermediate] => 0
                [Minor] => 0
            )
    
        [RequestedShipment] => Array
            (
                [PreferredCurrency] => BRL
                [DropoffType] => REGULAR_PICKUP
                [ShipTimestamp] => 2018-05-07T00:00:00+00:00
                [PackagingType] => YOUR_PACKAGING
                [Shipper] => Array
                    (
                        [Address] => Array
                            (
                                [PostalCode] => 13086-045
                                [CountryCode] => BR
                            )
    
                    )
    
                [ShippingChargesPayment] => Array
                    (
                        [PaymentType] => SENDER
                        [Payor] => Array
                            (
                                [ResponsibleParty] => Array
                                    (
                                        [AccountNumber] => 510087240
                                        [CountryCode] => BR
                                    )
    
                            )
    
                    )
    
                [RateRequestTypes] => LIST
                [Recipient] => Array
                    (
                        [Address] => Array
                            (
                                [Residential] => 
                                [PostalCode] => 94104
                                [City] => SAN FRANCISCO
                                [StateOrProvinceCode] => CA
                                [CountryCode] => US
                            )
    
                    )
    
                [RequestedPackageLineItems] => Array
                    (
                        [0] => Array
                            (
                                [SequenceNumber] => 1
                                [GroupNumber] => 1
                                [GroupPackageCount] => 1
                                [Weight] => Array
                                    (
                                        [Value] => 1
                                        [Units] => KG
                                    )
    
                                [Dimensions] => Array
                                    (
                                        [Length] => 10
                                        [Width] => 10
                                        [Height] => 10
                                        [Units] => CM
                                    )
    
                                [InsuredValue] => Array
                                    (
                                        [Amount] => 1
                                        [Currency] => BRL
                                    )
    
                            )
    
                    )
    
                [PackageCount] => 1
                [TotalInsuredValue] => Array
                    (
                        [Amount] => 1
                        [Currency] => BRL
                    )
    
                [CustomsClearanceDetail] => Array
                    (
                        [DutiesPayment] => Array
                            (
                                [PaymentType] => SENDER
                                [Payor] => Array
                                    (
                                        [ResponsibleParty] => Array
                                            (
                                                [AccountNumber] => 510087240
                                                [CountryCode] => BR
                                            )
    
                                    )
    
                            )
    
                        [Commodities] => Array
                            (
                                [0] => Array
                                    (
                                        [Name] => teste
                                        [NumberOfPieces] => 1
                                        [Description] => 
                                        [CountryOfManufacture] => BR
                                        [Weight] => Array
                                            (
                                                [Units] => KG
                                                [Value] => 1
                                            )
    
                                        [Quantity] => 1
                                        [UnitPrice] => Array
                                            (
                                                [Amount] => 1
                                                [Currency] => BRL
                                            )
    
                                        [CustomsValue] => Array
                                            (
                                                [Amount] => 1
                                                [Currency] => BRL
                                            )
    
                                    )
    
                            )
    
                        [CommercialInvoice] => Array
                            (
                                [Purpose] => SOLD
                            )
    
                        [CustomsValue] => Array
                            (
                                [Currency] => BRL
                                [Amount] => 1
                            )
    
                    )
    
            )
    
    )

    The response is empty. I also enabled WP_DEBUG and WP_DEBUG_LOG and got the following notice:

    Notice: Array to string conversion in /var/www/html/wp-content/plugins/fedex-woocommerce-shipping-method/includes/nusoap/lib/nusoap.php on line 3191

    I believe this has nothing to with the error, though. I’m running a local installation on a Debian 9 machine in a private network, if that matters (although I believe not). I believe php-curl is working properly since I was able to make a simple request via PHP interactive session. Is this a known bug? Am I missing something?

  • #71459
    Anindo
    Anindo
    Keymaster

    Hi Gbariel,

    Thanks for reaching out to us.

    The shipping services that are available for the source & destination address in the Request (BR to US)are
    FedEx International First
    FedEx International Priority
    FedEx International Economy
    Kindly ensure that you have enabled these services in the plugin settings and then check with it. You can check for available services via FedEx ratesfincder: https://fedex.com/ratefinder/home

    In case you are still facing any issue, kindly provide us the complete FedEx Request and Response. We will check with it.
    Regarding loading time: If you are checking this by Debug mode, since the request has to load from API for all cases, it will take a little longer, hence disable the debug mode and check with it.

    Note: Kindly ensure to remove all sensitive info from request, as this is a public forum.

    Hope that helps!
    Let us know if you have any query.
    Regards,

  • #71599
    gabriel.catastrofe
    gabriel.catastrofe
    Participant

    Hello Anindo, thanks for replying.

    The shipping services that are available for the source & destination address in the Request (BR to US)are
    FedEx International First
    FedEx International Priority
    FedEx International Economy

    I had all shipping services enabled but now I disabled all of them except these ones, but I still can’t fetch any rate.
    The request:

    Array
    (
        [WebAuthenticationDetail] => Array
            (
                [UserCredential] => Array
                    (
                        [Key] => ******
                        [Password] => *****
                    )
    
            )
    
        [ClientDetail] => Array
            (
                [AccountNumber] => *****
                [MeterNumber] => *****
            )
    
        [TransactionDetail] => Array
            (
                [CustomerTransactionId] =>  *** WooCommerce Rate Request ***
            )
    
        [Version] => Array
            (
                [ServiceId] => crs
                [Major] => 22
                [Intermediate] => 0
                [Minor] => 0
            )
    
        [RequestedShipment] => Array
            (
                [PreferredCurrency] => BRL
                [DropoffType] => REGULAR_PICKUP
                [ShipTimestamp] => 2018-05-09T00:00:00+00:00
                [PackagingType] => YOUR_PACKAGING
                [Shipper] => Array
                    (
                        [Address] => Array
                            (
                                [PostalCode] => 13086-045
                                [CountryCode] => BR
                            )
    
                    )
    
                [ShippingChargesPayment] => Array
                    (
                        [PaymentType] => SENDER
                        [Payor] => Array
                            (
                                [ResponsibleParty] => Array
                                    (
                                        [AccountNumber] => 510087240
                                        [CountryCode] => BR
                                    )
    
                            )
    
                    )
    
                [RateRequestTypes] => LIST
                [Recipient] => Array
                    (
                        [Address] => Array
                            (
                                [Residential] => 
                                [PostalCode] => 95014
                                [City] => CUPERTINO
                                [StateOrProvinceCode] => CA
                                [CountryCode] => US
                            )
    
                    )
    
                [RequestedPackageLineItems] => Array
                    (
                        [0] => Array
                            (
                                [SequenceNumber] => 1
                                [GroupNumber] => 1
                                [GroupPackageCount] => 1
                                [Weight] => Array
                                    (
                                        [Value] => 1
                                        [Units] => KG
                                    )
    
                                [Dimensions] => Array
                                    (
                                        [Length] => 10
                                        [Width] => 10
                                        [Height] => 10
                                        [Units] => CM
                                    )
    
                                [InsuredValue] => Array
                                    (
                                        [Amount] => 1
                                        [Currency] => BRL
                                    )
    
                            )
    
                    )
    
                [PackageCount] => 1
                [TotalInsuredValue] => Array
                    (
                        [Amount] => 1
                        [Currency] => BRL
                    )
    
                [CustomsClearanceDetail] => Array
                    (
                        [DutiesPayment] => Array
                            (
                                [PaymentType] => SENDER
                                [Payor] => Array
                                    (
                                        [ResponsibleParty] => Array
                                            (
                                                [AccountNumber] => 510087240
                                                [CountryCode] => BR
                                            )
    
                                    )
    
                            )
    
                        [Commodities] => Array
                            (
                                [0] => Array
                                    (
                                        [Name] => teste
                                        [NumberOfPieces] => 1
                                        [Description] => 
                                        [CountryOfManufacture] => BR
                                        [Weight] => Array
                                            (
                                                [Units] => KG
                                                [Value] => 1
                                            )
    
                                        [Quantity] => 1
                                        [UnitPrice] => Array
                                            (
                                                [Amount] => 1
                                                [Currency] => BRL
                                            )
    
                                        [CustomsValue] => Array
                                            (
                                                [Amount] => 1
                                                [Currency] => BRL
                                            )
    
                                    )
    
                            )
    
                        [CommercialInvoice] => Array
                            (
                                [Purpose] => SOLD
                            )
    
                        [CustomsValue] => Array
                            (
                                [Currency] => BRL
                                [Amount] => 1
                            )
    
                    )
    
            )
    
    )

    And the response is the following:

    stdClass Object
    (
        [HighestSeverity] => FAILURE
        [Notifications] => stdClass Object
            (
                [Severity] => FAILURE
                [Source] => crs
                [Code] => 7
                [Message] => Rating is temporarily unavailable, please try again later.  
                [LocalizedMessage] => Rating is temporarily unavailable, please try again later.  
            )
    
        [TransactionDetail] => stdClass Object
            (
                [CustomerTransactionId] =>  *** WooCommerce Rate Request ***
            )
    
        [Version] => stdClass Object
            (
                [ServiceId] => crs
                [Major] => 22
                [Intermediate] => 0
                [Minor] => 0
            )
    
    )

    I am willing to buy the paid version but first I need to see the free version working.
    Thanks for the help so far!

  • #71601
    Anindo
    Anindo
    Keymaster

    Hi Gabriel,

    The response indicates:”Rating is temporarily unavailable error”- This error usually occurs when FedEx servers are down, could you please wait for a while and check with it after sometime.

    Also this error is not thrown from the plugin. This occurs often in FedEx test servers. However, on using Production server, it will not be a recurrent issue. You can also check this with FedEx as well.

    Let us know if you have any query.
    Regards,

You must be logged in to reply to this topic.