Hey guys, I built a workflow with Dropbox, but I discovered that the access token expires after 4 hours. What is the solution? If I use OAuth, will the problem be solved?
Hello @Ali4 ,
Yes, switching to OAuth2 is exactly the solution.
When you set up the Dropbox OAuth2 API credential in n8n, it handles the “Refresh Token” automatically. This means n8n will silently get a new access token for you in the background whenever the old one expires, so your workflow will run forever without manual updates.
This is good news. However, in the current workflow, after Dropbox upload node, there is a Dropbox HTTP file sharing link node.What should I do in this situation?
You just need to update the Credential field in your Sharing node to use the same “Dropbox OAuth2” account you created for the Upload node.
Yep OAuth should solve ur problem, i had a usecase with dropbox and never had issues with it.
I’m doing something wrong, but I don’t know what it is. I hope you can help me.
Problem creating credential
OAuth url is not a valid URL.
Have you used it in HTTP Node? Because I’m facing this problem now, can you give me your opinion?
Problem creating credential
OAuth url is not a valid URL.
Looks like you pasted your actual Access Token string into the Access Token URL field. That field needs to be the API endpoint, not the password itself.
Change Access Token URL to exactly this: https://api.dropboxapi.com/oauth2/token
Also, ensure you copied that OAuth Redirect URL (top of the window) and pasted it into your Dropbox App Console under “Redirect URIs.”
Let me know if it connects now.
hey @Ali4 you’re using the wrong credential type, that “Dropbox OAuth2 API” one is for when you want to manually configure everything yourself with your own Dropbox app. You should use the regular “Dropbox” credential instead which is the pre-configured OAuth2 option that n8n has already set up with their own app registration, it handles all the OAuth URLs and redirect stuff automatically so you just click connect and authorize in the popup window. Delete that credential you’re trying to create and make a new one but pick “Dropbox” not “Dropbox OAuth2 API” from the dropdown.
Well, there is an improvement now, but this is the new problem, as you can see in the picture.
This is the text of the error from n8n: Unable to
sign without access token.
Do I need to do anything extra in Dropbox, or is the problem with N8N?
I tried using the Header and body in Authentication But nothing has changed.
Before the HTTP request node There is an official Dropbox upload node. The node outputs a PDF file. I want a shareable link for the file, and the only way to do this is by creating a http request
check if you pasted the App Secret into the Client ID box? i do that all the time. or maybe there’s a space at the end of the string.
look for ‘App Key’ in the dropbox console — that’s what n8n wants for Client ID.
recopy it and it should work.
@A_A4
There was indeed empty space, but it was in the Auth URI Query Parameters. The workflow is now working. Thank you for your help.




