h4kuna / ares

Download information about companies from ARES, PSR-17 ready
47 stars 17 forks source link

PHP Notice: Undefined index: D in /vendor/h4kuna/ares/src/Ares.php:74 #14

Closed BigOHenry closed 4 years ago

BigOHenry commented 5 years ago

Hello, today i just saw in the error.log this message:

PHP Notice: Undefined index: D in /var/www/xxx/prod/vendor/h4kuna/ares/src/Ares.php:74 @ CLI (PID: 1072): /var/www/xxx/prod/www/index.php rabbitmq:consumer aresApi

Could you look at it please? Thank you!

h4kuna commented 5 years ago

Have you IN for test?

BigOHenry commented 5 years ago

Sadly no :-/

h4kuna commented 5 years ago

I try found IN, after thousands request, ares block me. Could you log in where is this truble? Because i want to see xml.

BigOHenry commented 5 years ago

It should be one of these: 00179540, 36620751, 26597012

h4kuna commented 5 years ago

Fixed in master. Could you try it?

h4kuna commented 5 years ago

Released new version 1.4.5, i close this issue one month later.

BigOHenry commented 5 years ago

Thank you for the fix. I tested all 3 INs and its without error.

BigOHenry commented 5 years ago

Need to open this issue. This error appears today again. I did small research and its probably when the ARES is down (or another problem when not responding correctly). Today betwen 2019-10-04 01:08:37 - 2019-10-04 01:08:42 our 36 requests to ARES ends with IdentificationNumberNotFoundException + that Error. Requests before and after this timeline are fine.

PHP Notice: Undefined index: D in /var/www/xxx/prod/vendor/h4kuna/ares/src/Ares.php:67

h4kuna commented 5 years ago

is visible xml response in exception?

h4kuna commented 5 years ago

is visible response code?

BigOHenry commented 5 years ago

At this time i dont have it. But i added into our log that exception message and code. So when it will happen again, we will have useful info :-)

BigOHenry commented 4 years ago

Error finally happened again. Sadly IdentificationNumberNotFoundException is without message and code is 0.

h4kuna commented 4 years ago

Thank you, i made commit in master, could you try it?