postnl/postnl-magento1-End-of-life

[BUG] Occasional Error in API

Closed this issue · 7 comments

To Reproduce
Steps to reproduce the behavior:

  1. Ship order using multi action (happens occiasional, see error report)

Expected result
Success or at least a warning that tells us WHAT is wrong, or WHICH order and why

Actual result
Logging
2020-05-15T11:55:03+00:00 ERR (3): Notice: Undefined offset: 0 in /public_html/app/code/community/TIG/PostNL/Model/AddressValidation/Cendris/Abstract.php on line 122
2020-05-15T11:55:03+00:00 ERR (3): Notice: Trying to get property 'city' of non-object in /public_html/app/code/community/TIG/PostNL/Model/AddressValidation/Cendris/Abstract.php on line 87
2020-05-15T11:55:03+00:00 ERR (3): Notice: Trying to get property 'streetName' of non-object in /public_html/app/code/community/TIG/PostNL/Model/AddressValidation/Cendris/Abstract.php on line 88

Workaround
None

Screenshots

Possible solution
Improve error report in browser to tell WHAT is wrong
Improve error report in logging for WHICH order this is occuring
Quick win, in the end we want to fix the order and continue

** Please complete the following information**

  • Magento version: Magento 1.9.3.4
  • PHP version: 7.2.0
  • TIG PostNL version: 1.8.1, latest

Hello @seansan ,

Thanks for submitting this. Could you explain what you mean with "Ship order using multi action". This isn't entirely clear to me. If you could clarify this for me, I'll test this on our test environment.

Thanks in advance.

Kind regards,
Jasper

Hi @seansan ,

Just tried to see if I would get any errors, but this works without any problems. Is this purely a feature request to add extra logging to the M1 extension? We aren't expanding the M1 extension any further since M1 is reaching EOL soon.

Kind regards,
Jasper
TIG

Soon is not now. And support for current functionality is guaranteed for 2 years by postnl.
And extra logging is not a new feature .. it solves problems. Current problems.
We see this error every once in a while ... why?

I don't know, you will have to submit this through PostNL. Because I'm unable to reproduce what you are getting in the logs.

Hi,

As we are unable to reproduce the mentioned errors (or notices) on a core environment with the latest version (v1.16.3) installed, I'll be closing the issue.

If you want further support on the specific question on hand, or if you want changes in the way error handling currently works, please get in touch with PostNL by sending an e-mail to digitaleklantsupport@postnl.nl.