Credential Expire After Couple of Hours

Hello, I’m not sure if the term “expire” is proper for this issue but it’s close to it. I have couple of other node that interact with APIs, all of them except for Twitter credential “expire” after couple of hour later while running.


I had to reconnect them although within the credential editor points out that the credential is connected

After reconnecting my credential it runs fine until a couple of hours later it expired again…
(This happened after I clean reinstall n8n with docker, I don’t think it happen before in the previous version. I also reinstalled it again just in case but the same still happens.
My n8n version currently is 0.139.1 is there a way to revert back to the older version via docker?)

There have been a few of these recently, from what I can workout looking at the chatter the HTTP library was updated for requests so I suspect that may be the cause of these issues.

For science would you be able to add a new environment variable…

N8N_USE_DEPRECATED_REQUEST_LIB=true

If it works after adding this then it should be enough to show it is the change that is causing it, if it doesn’t work… swap back to the older version by setting the version tag in your docker file.

2 Likes

This solution worked for me, I was having the same problem in version 0.139.1:

2 Likes