-
Notifications
You must be signed in to change notification settings - Fork 5.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Mautic seemingly randomly lets the access token expire #6176
Comments
Hi @Clausinho , what are the access token/refresh token lifetime configured to on your end? |
It's the default:
Access token lifetime (in minutes)
60
Refresh token lifetime (in days)
14
…________________________________
From: Michael Lim ***@***.***>
Sent: Thursday, April 27, 2023 9:07:38 PM
To: PipedreamHQ/pipedream ***@***.***>
Cc: Claus-Peter Käpplinger ***@***.***>; Mention ***@***.***>
Subject: Re: [PipedreamHQ/pipedream] [BUG] Mautic seemingly randomly lets the access token expire (Issue #6176)
Hi @Clausinho<https://github.com/Clausinho> , what are the access token/refresh token lifetime configured to on your end?
—
Reply to this email directly, view it on GitHub<#6176 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABNFY36EK6YFWRT4UUGENPLXDK7XVANCNFSM6AAAAAAXN4USQM>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks for sharing, looking into this. |
Happened today again. It is impacting our business as this binds ressources refreshing the token manually. |
Hi @Clausinho , can you enable sharing for the workflow that you shared above? Under Settings --> |
Hi @Clausinho , checking in here to see if you can enable sharing for the workflow so that we can troubleshoot further. |
@malexanderlim |
hey @malexanderlim sorry for the late reply. any info you could get? |
Hi @Clausinho , I looked into your workflow as well as the app configuration and I was not able to see anything out of the ordinary, setup wise. Looking into the behavior - seems that there is sometimes a 400 error when attempting to fetch the refresh token, and it looks like this is is likely the culprit here, but I'm not sure why we are receiving these 400s to begin with. If you'd like, I can open up an issue with the Mautic team. |
Yea I'd really like that. |
@Clausinho , I've opened a ticket with the Mautic team here: It does not appear to be very active, but I'm hoping we can get some answers from their team as to the best way to handle this type of error. |
@malexanderlim it happened again today. My only other option is to do the auth myself, is there a way I could set the tokens of the connected source myself? |
@Clausinho Thanks for the patience. We actually implement complex retry logic for different scenarios and normally would, but a 400 Bad Request should not be retried — that indicates a malformed request by the client. I understand in this situation, it's not ideal answer, but Mautic needs to fix this on their end. Some of our customers run a Pizzly instance to handle token refresh in a custom way. You should be able to connect Pizzly to your Mautic instance to see if that gives you more control, then use our Pizzly integration to fetch access tokens for specific users within a workflow. You can also implement custom token refresh logic on Pipedream or your own service, persisting them in some data store / database that you have access to, then fetch them in relevant workflows and authorize requests with those tokens. We also don't see this with all customers using Mautic — are you on the latest version of Mautic? |
hey @dylburger thanks for taking your time to formulate a very thorough response. |
Describe the bug
Mautic seemingly randomly lets the access token expire
If I try to reconnect with the same details, I just have to sign in again and it works.
I suspect either Mautic messing something up or Pipedream failing to refresh the token and it then expiring.
To Reproduce
Steps to reproduce the behavior:
Message: {"errors":[{"message":"The access token provided has expired.","code":401,"type":"invalid_grant"}]}
Expected behavior
Mautic does not lose connection, and does not need an oauth reauth
Additional context
Please feel free to ask me more details and show me ways to give more logs.
An example workflow would be https://pipedream.com/@fotodino/token-customer-creation-flow-for-cp-board-v2-5-p_WxCmAWY/inspect
(I think its private anyway, so unless you are the support or have rights, you can't do anything with the URL)
The text was updated successfully, but these errors were encountered: