Hi @Dumitru, I have bought this plugin and as far as I can tell I have followed the instructions provided in this plugin’s documentation, and Google’s instructions to set up the service account correctly, however I am getting an error as follows:
When comparing configuration in your sample app I decided to test your Google Drive credentials in my app, and that worked without issue, so I believe the issue is with either my credentials or my service account configuration.
Looking at my credentials, I have noticed the private key in JSON file generated by Google Console has newline “\n” characters inserted throughout.
{
"type": "service_account",
"project_id": "task-labour",
"private_key_id": "e19e3483310e3a0aa9e167e0a7d03d4455cb5f95",
"private_key": "-----BEGIN PRIVATE KEY-----\nMIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCvP/kBrV3P9sMA\nzbmXkl4oDaOSJk3lyPPogDRFmKuD+/GveqDsyg/rel6RCtLZw6EuTBRvTErZCWrd\nmY0bWwP9rnerX36fZqlhDIo458kKwYs0jmdLs4fcQs/IqDIME3Poxp59BzDLama5\naNykynABnhln5mtnA95/8V2VcFrEOm8L1FHmNX4BMDur8ZM0eUdgNBh1c3MjmXmy\ncFcZhJmkAErW+JogrpsrJ1JpwWxyWGcTOG8VA97F9tApfAIsQ7NvKDhs+0Mk/dva\nC8t6w8VHGux6E1es3Y6OoxyJXq6Cxj1Ms8ePMn4cZzm8q47E2ExFQoycSFDNVZOp\nSYC0Cud/AgMBAAECggEABNXMLiPVNPHXIym0kf4rqImTy+pQTOOJ+I4M+HyZWCy2\ngtkXITauphhmt968vt2wZUFxG48BzlIoXNEp56l6XItDPvsFWIAxx9KGP8KutSQY\n40wohRoAyMQed9Ki1YV14GQWfFbwnYl5KGrAZ7A0KJSZmS3DedX3/hSv4yR0mfms\n/GnEMWQpYVTU1GtqSGRim7+RkQNPUpJPbFZBT5C38Nj/28aLd1pV3VRzTZx3tdzH\n1ob2eYD/nNqBZzBTBogKUvbBJX6AQZqrn1urBNWwBmTerkWZmbqmfObD707OvL/n\nyY+N69adxiuDmRWqo43EOjzrB6o33hB5cAZe/6gXYQKBgQDtn8QRwOp29gPdgW1m\nRWVm+etK4ZNU7950IQVwIjdhR0cPuZjsuvySjI+cgODD07RG1AvJW7rDrE9jKYeh\nwrXXo319jrXu6XZzyy3amW0YZvEhJlTYvdrDgIqrM0BTq31TRLnpoc7FsNAtRVtX\nDbqTcmpYnIuwzGbGpv8NzjnjXwKBgQC8zWMzi91b6/jheC91YRiwsRueOzF0jxn/\nvg+P8YQtBsT5+QBcHw00M+QlFp3hv2UACnzaIvqPSZXtjOmQBvVBhSYl/EPOlv/6\nEfDJ2dpRNvdzt2BpFXAb+/YDylhNQ8kcCYhAaUpKd3EjXUvF/tb2hzhkbl60rnYa\njDFu29iP4QKBgQDqqWwnXCwvbqRCix5OcRnCp+wE9t9YccltRW7pXeDy4ED89nxe\nzAnBb64jD+LngJn3mFBLeZrmwbNkag7XYEHTwlCbPePNHCEuGOgfiISEJKTb587C\nfDsd9kL67pIIDsKlCKnQX0qjUAlFq8iYH6axFbyP5YjOAA0/AIvARnhEYQKBgQC0\nwks8uabH8AdLDr8ZOUnjON2BQ5jYyH0Szcume4uZdEa4MP54ND53AUtnetzTmmO/\ng0r/qceL0d7aHTQscYz0Gt9oNLpSm10d9Xk8N/f+E4scXa/PS/gWwsdJ37tk1gZA\ncpvhVy0KWIqYWiVGvfLe+p0yAj1n7TQjvJ9DTPZs4QKBgArWuKwTGbjSCgeOBE3x\nUhWC98G1XAF7K4XYrxEGkLEK8apOm8u9txFXLncnDTbNPSpg1OxlQt5qYL1vUJbu\nGsueQ6BSUSHDp5Vin05pOooKzP6MSRQnVjmYLwBLD5XHEDn3Zs113FXWx7ZXXc94\nxmhCZMSl8LSZKP02T/HV7ftp\n-----END PRIVATE KEY-----\n",
"client_email": "crm-336@task-labour.iam.gserviceaccount.com",
"client_id": "106227267848194332711",
"auth_uri": "https://accounts.google.com/o/oauth2/auth",
"token_uri": "https://oauth2.googleapis.com/token",
"auth_provider_x509_cert_url": "https://www.googleapis.com/oauth2/v1/certs",
"client_x509_cert_url": "https://www.googleapis.com/robot/v1/metadata/x509/crm-336%40task-labour.iam.gserviceaccount.com"
}
Is this something you found when generating these keys during service account creation or is my Google Console being “special”? I have attempted to strip out these out but I get the same error and am wondering if in the process of searching and replacing I have otherwise corrupted the key.
Are there any other reasons known to yourselves as to why I might be getting this error (some config option in Google Console I may have overlooked or not covered in documentation?) I have both Admin SDK and Google Drive APIs enabled.
Finally, in an attempt to create credentials successfully I tried using the tool Jarrad created but am getting this error:

Other screen shots you might find usefull:
Google Console showing service account and creds:
Google Console showing Admin SDK and Google Drive APIs enabled (I assumed these are the only two I need for this plugin?):
Bubble plugin config (showing a version of the private key with newline characters stripped - I have tried original versions and some other variations all resulting in the same error):
Looking forward to hearing from you.
Mike.