Error "Request failed with status code 412" when creating new account

Nextcloud version (eg, 12.0.2): Nextcloud version: 17.0.1 - 17.0.1.1
Operating system and version (eg, Ubuntu 17.04): Operating system: Linux 4.4.59+ #24922 SMP PREEMPT Mon Aug 19 12:13:37 CST 2019 x86_64
Apache or nginx version (eg, Apache 2.4.25): Webserver: Apache/2.4.39 (Unix) (fpm-fcgi)
PHP version (eg, 7.1): PHP version: 7.3.7

The issue you are facing:
Error “Request failed with status code 412” when creating new account

Is this the first time you’ve seen this error? (Y/N): Y

Steps to replicate it:

  1. Creat a user
  2. Then the user set the passeword
  3. Then the user facing the error “Request failed with status code 412” when initializing passeword

The output of your Nextcloud log in Admin > Logging:
There is no error on the log

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

<?php
$CONFIG = array (
  'instanceid' => 'ocz6hhtw8n41',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '<hostname>',
  ),
  'datadirectory' => '/volume1/NextCloud',
  'dbtype' => 'pgsql',
  'version' => '17.0.1.1',
  'overwrite.cli.url' => 'https://<hostname>/nextcloud',
  'dbname' => 'nextcloud',
  'dbhost' => '192.168.1.22:5432',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'dbuser' => 'nextcloud',
  'dbpassword' => '***',
  'installed' => true,
  'theme' => '',
  'loglevel' => 2,
  'maintenance' => false,
  'app_install_overwrite' => 
  array (
    0 => 'ojsxc',
    'onlyoffice' => 
    array (
      'verify_peer_off' => true,
    ),
  ),
  'filelocking.enabled' => false,
);

The output of your Apache/nginx/system log in /var/log/____:
None