This can be fixed by removing the carriage return in the ./secrets/webapi/WEBAPI_DATASOURCE_PASSWORD file.