ZohoMail oauth2 access token not refreshing

Describe the problem/error/question

I read many forums and documentation online for connecting zoho with n8n using oauth2, but i’m still getting the refresh token issue although I’m sure I’m following everything to the tee.

  • Make sure it’s .com
  • Add access_type=offline
  • Add scopes: ZohoMail.accounts.READ,ZohoMail.messages.CREATE
  • Redirect URI

Everything. But it’s just not working and I have no idea why. It connects normally, works for 1 hour, then stops working and I need to manually connect again to make it work.

I even made the HTTPS node refresh multiple times on error, in case I need to send more than 1 request for the refresh token to work. Didn’t work either.

What is the error message (if any)?

The resource you are requesting could not be found

MAIN ERROR:
404 - “{"data":{"errorCode":"INVALID_OAUTHTOKEN"},"status":{"code":404,"description":"Invalid Input"}}”

Please share your workflow

Share the output returned by the last node

Information on your n8n setup

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

Hey, I think I can help. Regarding to why it stops after 1 hour is because it expires after 3600 secons/ 1 hour.

Could you share your workflow?

I’m getting a 403 when I try to share my workflow. Even tried now and it’s not working

Try this:

n8n attach workflow

That’s what I’m doing, and I can see it in the preview, but when I submit it gives me a 403. Let me me try from incognito.


Not working. Can’t paste the code, not even outside the

type or paste code here

@Grot check screenshots in the main message, they’ll give you a clear idea of my settings.

Can you try to paste the json without the quotation marks. I can format it and import to my n8n instance.

@Grot managed to paste the bit that matters: shopify trigger → https request to Zoho mail

1 Like

@bahaa I was away for a bit. Have now made an account for Zoho CRM. Currently looking into it.

I think I found a simple solution. So n8n has the Zoho CRM node. Connect your account that way and save the credential.

Then when that’s done you can delete the node.

In the http node pick the predefined credential type, and pick Zoho. As pictured in the image below. This way n8n handles the auth.

Hey, thanks for that. Tried it but it doesn’t work because of the scopes. I think I can make it work but this is a big change to our internal workflow and I don’t want to go through it — we don’t use Zoho CRM.

Hi, I understand. I looked at a bit further and tried changing a few details but with no luck. Unfortunately I dont think its fixable in its current form. It seems to be a mismatch of what n8n expects and what zoho sends.

I have seen workflows that manually does it with multiple nodes.