contacts icon indicating copy to clipboard operation
contacts copied to clipboard

No provider found for id account exception

Open melroy89 opened this issue 1 year ago • 0 comments

Describe the bug

I get a lot of errors No provider found for id account in my log when using Nextcloud 30 together with the latest Contact app. Contacts app seems to trigger the issue after some investigation.

Steps to reproduce

  1. Use the latest NC30 and your Contacts app
  2. Go to 'All contacts' in the Contact app
  3. See errors appear in the logging: "No provider found for id account"
  4. Inspecting the network tab in the developer tool shows HTTP request: https://<domain>/ocs/v2.php/teams/resources/account/<contact-name>, which is using this server API end-point: https://github.com/nextcloud/server/blob/master/core/Controller/TeamsApiController.php#L65. And the /resources/{providerId}/{resourceId} is /resources/account/<contact-name>. For some reason accounts is an invalid provider identifier now.
  5. Clicking on "Contacts settings" -> Address books -> It does show the address books called "Accounts". Meaning this address book is present, but I'm unsure what is meant by provider ID in this case. I only know that accounts is causing 500 internal server errors.

Expected behavior

No exceptions, no 500 errors.

Actual behavior

HTTP request https://<domain.com>/ocs/v2.php/teams/resources/account/<user> returning responses:

<?xml version="1.0"?>
<ocs>
 <meta>
  <status>failure</status>
  <statuscode>500</statuscode>
  <message>Internal Server Error
</message>
 </meta>
 <data/>
</ocs>

Log is showing:

image

Contact version

6.1.0

Operating system

Ubuntu server 22.04

PHP engine version

PHP 8.3

Web server

Nginx

Database

MariaDB

Additional info

Related issue: https://github.com/nextcloud/server/issues/48039 (but I think it's a Contacts app issue, is it?).

melroy89 avatar Sep 27 '24 20:09 melroy89