-
Notifications
You must be signed in to change notification settings - Fork 179
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
SocialApiService: Call to a member function supportsContact() on null #2348
Comments
I do not see this error in my logs with same server configuration. I suppose you do have contacts in your address book? |
I only had a quick look at the code but I couldn't see any handling of the contacts/lib/Cron/SocialUpdate.php Line 49 in c03bd90
To me it seems as if that is just not handled properly as it would basically result in a contacts/lib/Service/SocialApiService.php Line 191 in 205df6a
The tests I looked add might not catch that though, since the provider is mocked there independent on the network: contacts/tests/unit/Service/SocialApiServiceTest.php Lines 443 to 445 in 2a3950e
If you need any additional info let me know. |
ah, yes. |
I pushed the patch i had in mind to #2351 but it showed up further errors once it passes to the actual providers https://sentry.io/share/issue/d247613a85f14dff9abeddb287d1bf73/ |
Thank you, it looks fine. I will add some checks in the supportsContact functions to return false if no respective field is set so the error log will be clean again. |
Describe the bug
Error on SocialUpdate background job
Full trace at: https://sentry.io/share/issue/836e7100013b4de9824a5bc95b31d426/
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No errors in the logs
Actual behavior
See error log linked above
Server configuration
Operating system: Windows, Linux, MacOS...
Web server: Apache
Database: MariaDB
PHP version: 8.0
Nextcloud version: 22.0.0
Contacts version: 4.0.0
Updated from an older Nextcloud or fresh install: Updated
The text was updated successfully, but these errors were encountered: