Hi all,
I’m using n8n Cloud (v1.101.1) and working with the Google Chat API. The built-in Google nodes in n8n don’t cover all the operations I need—for instance, I want to create spaces and reply to specific message threads.
Therefore, I’m trying to use the HTTP Request node instead, authenticating via a Google Service Account. However, I’m running into this error:
secretOrPrivateKey must be an asymmetric key when using RS256
From what I understand, the JWT creation and signing process (needed to get the OAuth2 access token) is handled internally only by the Google nodes. When I try to authenticate via HTTP Request node using my Service Account JSON credentials directly, it seems like that JWT signing logic isn’t executed, hence the error.
My questions are:
- Is it true that the Google credentials in n8n only integrate with the native Google nodes and don’t automatically apply to HTTP Request nodes?
- Is there any way to make HTTP requests to Google APIs (like Google Chat) using my Service Account in n8n, via the HTTP Request node method?
- Alternatively, do I need to generate the JWT and fetch the access token and set it in the HTTP headers?
Any guidance or examples would be much appreciated!
Thanks in advance.