Another "Dummy.stack.replace is not a function" error post

Describe the problem/error/question

It keeps happening randomly: every few minutes I’m forced to reconnect my Google accounts because the authentication drops. What makes it even more annoying is that when I reconnect, I have to do it for every single node that uses Google services whether it’s Sheets, Drive, or anything else. The connection only lasts a short while, usually 20–45 minutes at best, and then everything disconnects again.

I found very little information about this issue, so I figured it was worth opening a new post. Maybe I’m missing something, but everything in the Google Console is configured correctly. It worked perfectly for weeks, and only recently it started breaking like this. I’m using 2FA and all the required settings in the Google project are in place.

What is the error message (if any)?

Dummy.stack.replace is not a function

Please share your workflow

Information on your n8n setup

  • n8n version: 1.122.4
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: Ubuntu 22

The issue you’re experiencing with Google account authentication dropping frequently is often related to token expiration or OAuth consent verification issues. Check your Google Cloud Console to ensure the OAuth consent screen is properly configured and that the token refresh settings are enabled. Also, verify that your OAuth client ID and secret in n8n are correct and match the ones in your Google Cloud project.

If the problem persists, try clearing the existing Google credentials in n8n and re-authenticating all nodes. This can sometimes resolve token-related issues. Let me know if that helps!