Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Return value of "OCA\Analytics\Command\Load::execute()" must be of the type int, "null" returned #91

Closed
AleksovAnry opened this issue Dec 30, 2020 · 2 comments

Comments

@AleksovAnry
Copy link
Contributor

AleksovAnry commented Dec 30, 2020

Trying to grap data from web source. Previously it works fine, but now, something went wrong. When i'm ran occ command to load data, i get this error:

root@cloud:/var/www/html/nextcloud# sudo -u www-data php occ analytics:load 12
An unhandled exception has been thrown:
TypeError: Return value of "OCA\Analytics\Command\Load::execute()" must be of the type int, "null" returned. in /var/www/html/nextcloud/apps/mail/vendor/symfony/console/Command/Command.php:261
Stack trace:
#0 /var/www/html/nextcloud/apps/mail/vendor/symfony/console/Application.php(920): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#1 /var/www/html/nextcloud/apps/mail/vendor/symfony/console/Application.php(266): Symfony\Component\Console\Application->doRunCommand(Object(OCA\Analytics\Command\Load), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#2 /var/www/html/nextcloud/apps/mail/vendor/symfony/console/Application.php(142): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#3 /var/www/html/nextcloud/lib/private/Console/Application.php(215): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#4 /var/www/html/nextcloud/console.php(100): OC\Console\Application->run()
#5 /var/www/html/nextcloud/occ(11): require_once('/var/www/html/n...')
#6 {main}

Datasource & RegEx:
https://weather.com/ru-RU/weather/today/l/RSXX0063:1:RS
/(location--[\w]+">)(?.)(</h1><d)(.)(tempValue--[\w]+">)(?.*)(°</span><d)/

@Rello
Copy link
Owner

Rello commented Dec 30, 2020

die you try to deactivate the mail app - because it looks like this is causing the issue?

@AleksovAnry
Copy link
Contributor Author

Yes, thats is it. Disabling mail helps

@Rello Rello closed this as completed Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants