Rclone - No directories found + SSL

Hey Everyone

I have a few problems getting rclone up and running with nextcloud.

1: Nextcloud tells me there is no directories.
2: https:// cannot be used.

System

Nextcloud version (eg, 20.0.5): 28.0.1
Operating system and version (eg, Ubuntu 20.04): ubuntu 22.04
Apache or nginx version (eg, Apache 2.4.25): 2.4.58
PHP version (eg, 7.4): 8.1
rclone v1.65.0

Rclone config

[nextcloud]
type = webdav
url = http://URL/dav/files/USERNAME/
vendor = nextcloud
user = USERNAME
pass = xxxxxx

1: Problem

Command
rclone lsd nextcloud: -vv

output
<7>DEBUG : rclone: Version “v1.65.0” starting with parameters [“rclone” “lsd” “nextcloud:” “-vv”]
<7>DEBUG : rclone: systemd logging support activated
<7>DEBUG : Creating backend with remote “nextcloud:”
<7>DEBUG : Using config file from “/home/name/.config/rclone/rclone.conf”
<7>DEBUG : found headers:
<5>NOTICE: Chunks temporary upload directory: http://url/dav/uploads/username/
<3>ERROR : : error listing: directory not found
<7>DEBUG : 7 go routines active
Failed to lsd with 2 errors: last error was: directory not found

Question:
Why doesnt nextcloud know what directory to use when its tied into the user ?
It should just know okay its /data/files/username/ i need to be in. How do i make this work ?

2: https

If I replace the rclone confiig URL with https instead of http. it simply fails

Output
<5>NOTICE: Chunks temporary upload directory: https://url/dav/uploads/USERNAME/
<3>ERROR : : error listing: couldn’t list files:

405 Method Not Allowed

The site works well on https://url.com NO errors.

Thanks for your help and time.

Adding

https://url.com**/remote.php**/dav/files/username

Fixed the problem

Can rclone be used to backup nextcloud to box.com?