Auto Provisioning datasources with access "Server" gives error


I tried to auto provision Prometheus data source with access mode as Server.

config file version

apiVersion: 1


In UI, the data source is created with access mode as “Server (default)” but I wasn’t able to “Save & test” it. I get the following error.

When I select the option “Server (default)” manually again , then the data source is saved properly and I am able to test and monitor it.

Is this is bug or is there something wrong with my config file?