Credentials working in Test but failing in Active Workflow

My OAuth2 credential works in manual execution but fails with 401 in the active workflow. Token refresh appears successful. Could this be related to encrypted credential storage or instance restarts invalidating the session?

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hi @Joseph_Iko Welcome to the community!
Can you please share the details about which platform credentials fail at published mode?

Thanks for the welcome.

The failing credentials are for Google Sheets (OAuth2). the manual execution works perfectly and the token refresh completes without visible errors. However, once the workflow is activated, the same request returns a 401.

not home presently but will share logs or environment details if needed.

@Joseph_Iko It is likely because that your google Oauth is in testing mode, try setting that in production mode.

oh, thanks

Will check it

it’s a long list of things to follow

Anyways, thanks