Forum Discussion

MTassinari's avatar
MTassinari
New Member
3 years ago

CredentialMissing when trying to add MariaDB datasource to Gateway

I have registered an on-premises data gateway on our PowerBI Service account.

 

I was then trying to add a new datasource to it, for the time being using Postman, with the aim to fully automate it via powershell:

 

POST https://api.powerbi.com/v1.0/myorg/gateways/13ba33f6-42e7-4b75-abdf-cd81fafe18f4/datasources

 

with body

 

{
  "datasourceName""common.powerbi.626suite-online.it",
  "connectionDetails""{\"extensionDataSourcePath\": \"{\\\"MariaDB Data Source\\\": \\\"common.powerbi.626suite-online.it\\\"}\",\"extensionDataSourceKind\": \"MariaDB\"}",
  "credentialDetails": {
    "useCallerAADIdentity"false,
    "privacyLevel""Organizational",
    "encryptionAlgorithm""RSA-OAEP",
    "credentialType""Basic",
    "useEndUserOAuth2Credentials"false,
    "encryptedConnection""Encrypted",
    "credentials""tqM[...]XpA=="
  },
  "dataSourceType""Extension"
}
 
This API call fails with an error stating that "Credentials are required to connect to the MariaDB source", however the credentials are clearly present in the request...
 
I have checked that
- the gateway can correctly connect to the datasource from the command line
- the custom connector for MariaDB is correctly loaded
 
Can anyone help me understand why am I getting this error?
No RepliesBe the first to reply