actions-on-google / assistant-conversation-testing-nodejs

Assistant conversation testing library
Apache License 2.0
21 stars 16 forks source link

Permission Error #18

Open abrahamfazil opened 3 years ago

abrahamfazil commented 3 years ago

I followed all the setup instructions on the GitHub page, but I keep getting a permission error. I tried it with a service account with 'Actions Admin' and 'Owner' but I keep getting a permission error.

Below is my code :

import {ActionsOnGoogleTestManager} from '@assistant/conversation-testing';

const PROJECT_ID = 'my-project-id'; const TRIGGER_PHRASE = 'my trigger phrase';

const testManager = new ActionsOnGoogleTestManager({ projectId: PROJECT_ID }); let response = testManager.sendQuery(TRIGGER_PHRASE);

response.then((a) => { console.log(a); }, (error) => { console.log(error); });

Below is the error I am getting on the console:

Error: sendInteraction API call failed: Error: 7 PERMISSION_DENIED: The caller does not have permission at ActionsApiHelper.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/actions-api-helper.js:47:19) at async ActionsOnGoogleTestManager.sendInteraction (/Users/.../Documents/node-google-assistant-test/node_modules/@assistant/conversation-testing/dist/action-on-google-test-manager.js:79:31)

Any help would be appreciated.