Google Palm API node seems not working and missing docs

Describe the problem/error/question

Google Palm chat API seems missing:
https://docs.n8n.io/integrations/builtin/credentials/googlePalm/?utm_source=n8n_app&utm_medium=credential_settings&utm_campaign=create_new_credentials_modal

What is the error message (if any)?

Information on your n8n setup

  • n8n version: n8n ai beta latest
  • Database (default: SQLite): sqlite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): docker
  • Operating system: Ubuntu (self host)

Hey @TAN_YONG_SHENG,

It looks like we need to update the link the correct link should be Google PaLM credentials | n8n Docs

I will get the links updated shortly, When you say the node isn’t working which node are you trying and which bit isn’t working?

It’s when credentials setup via API

As for the error, I suspected Google Palm API is restricting some regions from accessing it: vps - How to Resolve "User Location Not Supported" Error When Connecting to palm2 API from Server in Amsterdam? - Stack Overflow

Hence, I tried to authenticate my Google Palm API via curl, but it also failed:

 
curl -H 'Content-Type: application/json' -H "x-goog-api-key: AI            zaSyDQElTIH-A_qBZkYp_1FWU8SqMXCdh9BzM" -d '{"prompt": {text: "Give me five subca            tegories of jazz"} }' "https://generativelanguage.googleapis.com/v1beta3/models/            text-bison-001:generateText"

and shows error code below:

{
  "error": {
    "code": 400,
    "message": "User location is not supported for the API use.",
    "status": "FAILED_PRECONDITION"
  }
}

I think I could close this case if this is the case. Thanks a lot.


UPDATE:

  • n8n version: Version 1.17.0
1 Like

Hey @TAN_YONG_SHENG,

You are correct there the Palm API is not available from all locations yet which would explain why it is not working for you. A list of available regions can be found here: https://developers.generativeai.google/available_regions

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.