Password API FAILED

Support intro

Subject: Issue with “Password” Integration - Error: “API FAILED”

Good evening,

I am gradually exploring the Nextcloud solution, which I find superb at first glance.

However, I am encountering an issue with the “password” integration. When attempting to select the use of a favicon manager, such as besticon or any other solution, I encounter an error: “API FAILED.”

Regarding my configuration, I am using Docker behind a Traefik 2 reverse proxy, and my configuration seems correct.

The logs available from the dashboard do not provide any specific information. The analysis of the debug console returns the following information:

Have you ever encountered this issue?

Thank you and have a good evening.

Nextcloud version (eg, 20.0.5): 28.0.1
Operating system and version (eg, Ubuntu 20.04): Linux 6.2.0-39-generic x86_64
Apache or nginx version (eg, Apache 2.4.25): latest docker image
PHP version (eg, 7.4): latest docker image

The issue you are facing:

Is this the first time you’ve seen this error? (Y/N):
Yes
Steps to replicate it:

  1. install password integration
  2. try to change de favicon provider

The output of your Nextcloud log in Admin > Logging:

{"reqId":"F24UwCDcZwZ2JEokQeaq","level":3,"time":"2023-12-26T19:45:59+00:00","remoteAddr":"mylocalip","user":"myadmin","app":"no app in context","method":"GET","url":"/ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=user_status","message":"Dashboard widget passwords-widget took 1.1 seconds to load.","userAgent":"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:121.0) Gecko/20100101 Firefox/121.0","version":"28.0.1.1","data":[]}

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'upgrade.disable-web' => true,
  'instanceid' => 'myid',
  'passwordsalt' => 'mypasswd',
  'secret' => 'mysecret',
  'trusted_domains' => 
  array (
    0 => 'mylocalip:myport',
    1 => 'my.domain.com',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'overwrite.cli.url' => 'https://mmy.domain.com',
  'dbname' => 'mydb',
  'dbhost' => 'nextcloud_db',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'myuser',
  'dbpassword' => 'mypwd',
  'installed' => true,
  'app_install_overwrite' => 
  array (
    0 => 'integration_homeassistant',
    1 => 'unsplash',
    2 => 'externalportal',
  ),
  'overwritehost' => 'my.domain.com',
  'overwriteprotocol' => 'https',
  'trusted_proxies' => 
  array (
    0 => 'myproxy/16',
  ),
  'mail_smtpmode' => 'smtp',
  'mail_smtpauth' => 1,
  'mail_sendmailmode' => 'smtp',
  'mail_smtphost' => 'myprovider',
  'mail_smtpport' => 'myport',
  'mail_from_address' => 'myaddr',
  'mail_domain' => 'mydomain',
  'mail_smtpname' => 'my@mail.com',
  'mail_smtppassword' => 'mypwd',
);

Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

[no app in context] Erreur: Dashboard widget passwords-widget took 1.1 seconds to load.
	GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=user_status
	023-12-26T19:45:59+00:00

Hi,

After investigation from the official page of passwords, i found a bug report that seems to be my case: [BUG]: API Request failed in dashboard · Issue #620 · marius-wieschollek/passwords · GitHub

Regards

1 Like