T
Twenty2w ago
Raph

Update from .31 to .32 killed my Zapier Authentication.

Hey All, anyone run into any issues with Zapier after upgrading to .32? At the moment all of my zaps are failing due to the following response: Any ideas on what happened here?
No description
58 Replies
martmull
martmull2w ago
Hey, thank you for reporting, I am checking that tomorrow
Raph
RaphOP2w ago
Sounds like a plan, @martmull ! Is there an issue that is being tracked?
martmull
martmull2w ago
Nope, you can create one if you like. Are you using zaps on your self hosted instance or on app.twenty.com?
martmull
martmull2w ago
Erratum there is one issue to track zapier related issues https://github.com/twentyhq/twenty/issues/8149
GitHub
⚡Zapier Master Issue · Issue #8149 · twentyhq/twenty
The content you are editing has changed. Please copy your edits and refresh the page. Tasks Beta Give feedback Creating a new company in twenty doesn't activate on Zapier #8130 type: bug +1 typ...
martmull
martmull2w ago
ok, my hypothesis is that the issue is not related to zapier integration, but on authentication. If I remember well, we changed the way tokens are encoded (we now have only one token and not multiple onces) -> https://github.com/twentyhq/twenty/pull/7810/files It occurs that all users add to reconnect when migrating to 0.0.32 @charles do you confirm?
Raph
RaphOP2w ago
Hey @martmull thanks for looking into this. When I try to reauthenticate zapier I end up with the error that I posted above.
martmull
martmull2w ago
ok, did you update your API key?
Raph
RaphOP2w ago
The process is something like this: 1. I generate the token in my self hosted Twenty. 2. I go to zapier to reset my twenty token. 3. I set the URL and token as specified by zapier. 4. Upon the save action the response above is the result. I see the 200 so the endpoint is fine, but the rest isn't. It's like the self hosted version of twenty isn't accepting the token as valid. But yes, to confirm I did create a new token. I can try again and will report back. Just to confirm, I just created another token to test and this was the response:
authentication failed: query: query currentWorkspace {currentWorkspace {id displayName}}, error: {"message":"query: query currentWorkspace {currentWorkspace {id displayName}}, error: [{\"message\":\"Token invalid.\",\"extensions\":{\"code\":\"UNAUTHENTICATED\"}}]","code":"ApiError","status":200}
authentication failed: query: query currentWorkspace {currentWorkspace {id displayName}}, error: {"message":"query: query currentWorkspace {currentWorkspace {id displayName}}, error: [{\"message\":\"Token invalid.\",\"extensions\":{\"code\":\"UNAUTHENTICATED\"}}]","code":"ApiError","status":200}
martmull
martmull2w ago
@Raph would it be possible to have a call so you can show me the problem? I must be missing something because I can't reproduce
Raph
RaphOP2w ago
@martmull definitely! When would you be available?
martmull
martmull2w ago
Is Tuesday ok for you?
Raph
RaphOP2w ago
I can do from 8-9am EST. Would that work?
charles
charles2w ago
@Raph are you on the latest version v0.32.3? Previous API_TOKEN should still work and newly generate ones too Have you set your APP_SECRET for 0.32 ? (if you want previously created token to keep working you actually need to keep ACCESS_TOKEN_SECRET for backward compatibility)
Raph
RaphOP2w ago
Hi @charles , I'm on v.0.32.0 Even in th instance when I create a NEW token the auth on Zapier still fails.
charles
charles2w ago
please try v0.32.3, we might had an issue on v0.32.0
Raph
RaphOP2w ago
Sounds good. I'll give it a shot and report back.
charles
charles2w ago
there is not data migration between the too, so you can just upgrade your container should be seemless
Raph
RaphOP2w ago
Awesome. I'll start working on that. I appreciate the support. Also, @charles ACCESS_TOKEN_SECRET is still intact in the env.
charles
charles2w ago
okay so using the latest one, your old token should still work (or you can also generate a new one as you prefer)
Raph
RaphOP2w ago
Well, I updated to v0.32.3 but the app still says v0.32.0 ¯\_(ツ)_/¯
Raph
RaphOP2w ago
No description
charles
charles2w ago
That's not normal 😄 are you sure you are on v0.32.3? you should see v0.32.3 (just double checked)
Raph
RaphOP2w ago
lol - I double checking.. Dealing with some weirdness today.
ɃØĦɆᵾS
ɃØĦɆᵾS2w ago
Can confirm, I'm on main and have 0.32.0
charles
charles2w ago
main is on v0.32.0 indeed (it should actually be v0.33.0-canary) but v0.32.3 tag is on 0.32.3 command shift + R ? 😄
Raph
RaphOP2w ago
I see an error: 'Metadata version not found for workspace 7219d9c5-76fd-4248-aacb-7e4523319680 🤔 hmm. Maybe a redis flush?
charles
charles2w ago
does it persist on refresh? it can happen on upgrade but should auto-recover yes I think we are flushing a little bit too much on upgrade
Raph
RaphOP2w ago
yeah, it recovers. After a refresh I don't see it. BUT I also don't see the version update on the settings > General page. So let me dig into that a bit. yarn command should do it.. The logs looks like it is.
charles
charles2w ago
you should not have to run yarn commands on your prod container I'm in the train and I cannot pull v0.32.3 on my laptop
Raph
RaphOP2w ago
all good..
charles
charles2w ago
you are self-hosting through the regular docker-compose, right?
Raph
RaphOP2w ago
correct. Although, at times I have used yard to ensure migrations aren't sitting around unexecuted. in my .env I have SOFTWARE_VERSION_TAG=v0.32.3 I'm going to revert back to 32.0 and step up by version to 32.3. I'm pretty sure that I did, BUT.. I'm human.
charles
charles2w ago
could you ssh in your container cat /app/packages/twenty-server/package.json
Raph
RaphOP2w ago
sure
charles
charles2w ago
I'm not sure what SOFTWARE_VERSION_TAG is
Raph
RaphOP2w ago
Just a way for me to keep track of my envs
charles
charles2w ago
what's important is to have:
No description
charles
charles2w ago
TAG should be v0.32.3 (or latest)
Raph
RaphOP2w ago
yeah still sitting at v0.32.0 🤔
charles
charles2w ago
you are not on the right container, not sure what's wrong :p likely a small mistake :p
Raph
RaphOP2w ago
lol - I'll dig into it for a bit and see if I have other containers sitting around.
charles
charles2w ago
keep me updated!
Raph
RaphOP2w ago
no extra containers sitting out there, but something is "off" I'll keep you posted. Thanks for the hints! Any chance we can move this to 8:15am ET? I have meeting at 9:00am ET and need about 10 mins of travel time to get there.
martmull
martmull7d ago
Hey Raph, it won’t be possible for me. Think 15/20 min will be great to figure out something. We will plan another meeting if necessary https://meet.google.com/fjz-xnjv-zdo @Raph don't hesitate to suggest another meeting today
Raph
RaphOP7d ago
@martmull does the same time tomorrow morning work? So it would be 8:30am ET on 11/13.
martmull
martmull7d ago
Hey, tomorrow I won’t be available before 9am
Raph
RaphOP7d ago
I’m pretty flexible tomorrow. Let me know what’s convenient time for you and I’ll make it work.
martmull
martmull7d ago
11:30am?
Raph
RaphOP6d ago
@martmull that works for me! Thank you!
martmull
martmull6d ago
Ok perfect https://meet.google.com/fjz-xnjv-zdo here ok for you ? ready @Raph ?
Raph
RaphOP6d ago
Ha! I was worried about the time zones.. So I’m in the US (NYC) time. It’s currently 9:19am EST. Where are you located, or what time is it where you are at?
martmull
martmull6d ago
haha ok no problem
Raph
RaphOP6d ago
International Meeting Planner
Find the best time to have a meeting across time zones.
martmull
martmull6d ago
Paris time
Raph
RaphOP6d ago
Ok When are you free next in Paris time?
martmull
martmull6d ago
17:30pm is good to me, will be 11:30am for you isn't it? (message above edited) so it matches our initial meet schedule Available tomorrow after 3:30pm Paris time
Raph
RaphOP5d ago
I don't think it's necessary to meet @martmull Something beginning with 33.0 changed and I was able to reauthenticate my zaps. None of my prior API keys worked, but when I create a new API key I was able to authenticate Zapier. @charles regarding the version issue. I had found that something was wonky with the docker image where version 32.0 persisted all the way to 32.3. I'm not sure what happened? Perhaps an artifact, but moving to main fixed all of my issues. (Except for the Gmail contact as TBD) We'll call it growing pains! Thanks for all of your help!
Want results from more Discord servers?
Add your server