netresearch / dhl-module-shipping-m2

This extension is in legacy status since 04/2020 and will run out of maintenance and support after a short transition period. You can find the official replacement extension here https://github.com/netresearch/dhl-shipping-m2. It includes the latest and greatest possible range of functions that DHL is currently offering.
30 stars 20 forks source link

Exception on deactivated Service Option preferredTime #76

Closed mautz-et-tong closed 4 years ago

mautz-et-tong commented 4 years ago

Bug description The DHL Module throws randomly the Exception "Service with code preferredTime was removed due to error. Message: There are no results for this service."

We have completly deactivated this Options around preferred Time.

Error is thrown in CompositeOptionProvider line 79

Steps to reproduce No steps to reproduce. Error occurs randomly. Module is activated and normally setup and working fine beside of this error. Preferred Time options are disabled

Expected behavior The preferred time service should be ignored, no exception should be thrown.

Screenshots / logs "main.WARNING: Service with code preferredTime was removed due to error. Message: There are no results for this service." in system.log

Environment

FAQ Has the Knowledge Base been checked for a solution?

mam08ixo commented 4 years ago

Hi @mautz-et-tong,

first of all, this module version is no longer maintained. Please migrate to DHL Shipping v1.1.0.

My first guess is that the "randomness" comes from some older quotes/orders, created at a time when Preferred Time was still available. DHL Paket does no longer offer this service, so any attempts to fetch service options (=possible time slots) will fail, resulting in given error. In theory, this log entry should not occur for new checkout processes; the number of log entries will decrease over time.

If I understand you correctly, the error does not lead to a service disruption, it's "only" annoying. I kindly ask you to ignore these messages. There is nothing we or you can do about it but wait until there are no more traces of the Preferred Time service left in the service data.

mautz-et-tong commented 4 years ago

Migrated to the Marketplace Version.

MarcusWolschon commented 4 years ago

Hi @mautz-et-tong,

first of all, this module version is no longer maintained. Please migrate to DHL Shipping v1.1.0.

Please don't link to Magento marketplace but to the Github repository of the replacement. https://github.com/netresearch/dhl-shipping-m2