Skip to content
This repository has been archived by the owner on Feb 29, 2024. It is now read-only.

Permission Error #18

Open
abrahamfazil opened this issue Aug 9, 2021 · 0 comments
Open

Permission Error #18

abrahamfazil opened this issue Aug 9, 2021 · 0 comments

Comments

@abrahamfazil
Copy link

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant