#4714·duplicati

Creation of folder during Test Connection fails when using custom OAuth server

Author: albertonyCreated Apr 23, 2022Updated Sep 30, 2026
Labelsbugreproduced
  • I have searched open and closed issues for duplicates.
  • I have searched the forum for related topics.

Environment info

  • Duplicati version: Custom build based on master, 23.04.2022
  • Operating system: Microsoft Windows 10 Enterprise 21H2 (64 bit)
  • Backend: Any, but tested Jottacloud

Description

I'm testing https://github.com/duplicati/duplicati/pull/4699, adding oauth support for Jottacloud in backend as well as oauth service. When setting advanced option oauth-url to point to a custom oauth service (https://duplicati-oauth-handler-beta.appspot.com/refresh), the "Test Connection" succeeds if the specified destination path exists, but if the path does not exist Duplicati attempt at creating it fails with:

Failed to connect: Failed to authorize using the OAuth service: No such key. If the problem persists, try generating a new authid token from: https://duplicati-oauth-handler.appspot.com?type=jottacloud

So the reason seem to be that the "Test Connection" correctly picks up my configured oauth-url, but when it needs to create the destination path it will not, and will always try to get the token from the prod service.