Closed Flaschenzug closed 1 year ago
Hey @Flaschenzug,
sorry for the late reply!
This exception is thrown on purpose, because you got an error when trying to send data to the dhl api server. If i would add a try catch it would just not tell you that it didn't work, but still not work. However i definetly think that the error handling is very inconsistent atm. Im planning to do a refactor of several things for the next version where i want to work on the error handling as well.
What exactly would expect the lib to do if the dhl api server responds with 504? Im thinking of either transitioning to having error statuses or only use exceptions. It would help a lot to hear your Feedback about this 👍
In my error log I have the following Fatal error like 100 times:
The script is working normaly, but sometimes something is going wrong. Maybe it would make sense to add a try-catch exception for this kind of connection problem?
I will implement my own for the moment, just to prevent these errors from happening. But maybe it is interesting for the library too.