meumobi / AMS.Connect

1 stars 0 forks source link

If sublime API returns an error (html page) the exception is not catched #77

Closed vdias38 closed 6 years ago

vdias38 commented 7 years ago

Below the ERROR raised on log when sublime returns an error, for example for report of 08/09

[2017-09-29 10:21:58] lumen.ERROR: ErrorException: array_map(): Argument #2 should be an array in /app/app/Services/sublime/SublimeService.php:122

Should catch it, log the error, without catch the daily cron stop on sublime provider and not perform others providers

danconte72 commented 6 years ago

In order to launch the error you can put overwrite the $requestUrl on row 67. As this sample:

$requestUrl = "https://raw.githubusercontent.com/meumobi/AMS.Connect/master/composer.json";