-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: google[api.name] is not a function #17
Comments
Did you work this out in the end? Not sure what is going on here and getting the same error. |
We finally couldn't fix the problem, and instead we used the following library:
https://flows.nodered.org/node/node-red-contrib-dialogflowv2-api
…On Mon, Jul 22, 2019 at 8:20 AM Dan Leighton ***@***.***> wrote:
Did you work this out in the end?
Not sure what is going on here and getting the same error.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#17?email_source=notifications&email_token=AGKCHXDEE2C4QIU3BH63DOTQAWQX3A5CNFSM4GNBTA2KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2PXUBI#issuecomment-513767941>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGKCHXFKQ5HBFX6SXRPQYETQAWQX3ANCNFSM4GNBTA2A>
.
|
Ah, I have used that node for dialogflow. But I need to be able to use a whole heap of APIs. I don't think that one can be used for anything except Dialogflow? Or is it more flexible than that... I don't imagine it is? |
you are right. it is only for the dialogflow. |
That is the Viseo Google Library I think you are thinking of - which is part of a bigger library. It's kind of cool, but uses an old version of NodeRed - so not so good. And a pain to install. Pity. Thanks for the help. Best wishes. |
Hi,
I get an error ("TypeError: google[api.name] is not a function"), at this statement (exactly at line 123):
var api = decodeAPI(node.api); api = google[api.name]({ version: api.version, auth: auth });
It looks like the "google" variable does not get initialized as expected. I am saying that b/c "google.discovery('v1');" works fine (and it populates the api list and operation), but "google[api.name]" does not.
I even tried to change the code and statically call the api that I need (e.g. _google.dialogflow), but I got the same error.
Any idea?
Here are the environment settings and conditions:
+-- [email protected]
|
-- [email protected] | +-- [email protected] | |
-- [email protected] deduped| +-- [email protected]
| | +-- [email protected]
| | +-- [email protected]
| | | +-- [email protected]
| | | |
-- [email protected] | | | +-- [email protected] | | | | +-- [email protected] deduped | | | |
-- [email protected] deduped| | | +-- [email protected]
| | |
-- [email protected] | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | |
-- [email protected] deduped| | +-- [email protected]
| | | +-- [email protected]
| | | | +-- [email protected]
| | | | | +-- [email protected] deduped
| | | | | +-- [email protected]
| | | | | | +-- [email protected] deduped
| | | | | | +-- [email protected] deduped
| | | | | | +-- [email protected]
| | | | | |
-- [email protected] | | | | |
-- [email protected]| | | |
-- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | |
-- [email protected]| | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | | +-- [email protected]
| | | | |
-- [email protected] | | | | |
-- [email protected]| | | | |
-- [email protected] deduped | | | | +-- [email protected] | | | |
-- [email protected]| | |
-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | |
-- [email protected]| | |
-- [email protected] deduped | | +-- [email protected] | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] deduped | | | +-- [email protected] | | | |
-- [email protected]| | | | +-- [email protected] deduped
| | | | +-- [email protected] deduped
| | | | +-- [email protected] deduped
| | | | +-- [email protected]
| | | | +-- [email protected]
| | | |
-- [email protected] deduped | | | +-- [email protected] | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] | | | | +-- [email protected] | | | | |
-- [email protected] deduped| | | | +-- [email protected] deduped
| | | |
-- [email protected] deduped | | | +-- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | |
-- [email protected] deduped| | | | | +-- [email protected] deduped
| | | | |
-- [email protected] | | | | +-- [email protected] | | | | +-- [email protected] | | | | | +-- [email protected] | | | | | |
-- [email protected]| | | | | +-- [email protected]
| | | | | |
-- [email protected] deduped | | | | | +-- [email protected] | | | | | +-- [email protected] | | | | |
-- [email protected] deduped| | | |
-- [email protected] | | | |
-- [email protected]| | | +-- [email protected]
| | | | +-- [email protected]
| | | | |
-- [email protected] deduped | | | | +-- [email protected] | | | | |
-- [email protected] deduped| | | | +-- [email protected]
| | | |
-- [email protected] | | | |
-- [email protected] deduped| | | +-- [email protected]
| | | | +-- [email protected]
| | | | +-- [email protected] deduped
| | | |
-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] deduped | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | +-- [email protected] | | | |
-- [email protected]| | |
-- [email protected] | |
-- [email protected]| `-- [email protected]
The text was updated successfully, but these errors were encountered: