Skip to content
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

Error Message When Click on Connect WIth Google Button #5993

Open
weir1 opened this issue Jun 23, 2024 · 9 comments
Open

Error Message When Click on Connect WIth Google Button #5993

weir1 opened this issue Jun 23, 2024 · 9 comments
Labels
type: bug Something isn't working

Comments

@weir1
Copy link

weir1 commented Jun 23, 2024

Bug Description

{"statusCode":404,"message":"Google apis auth is not enabled","error":"Not Found"}
getting above message after I entered into setting & trying to add my email

Expected behavior

It should let me add my gmail account

...

I tried installation via a single click script

@weir1 weir1 added the type: bug Something isn't working label Jun 23, 2024
Copy link

greptile-apps bot commented Jun 23, 2024

The error message 'Google apis auth is not enabled' is thrown in the GoogleAPIsProviderEnabledGuard. Ensure that the environment variables MESSAGING_PROVIDER_GMAIL_ENABLED and CALENDAR_PROVIDER_GOOGLE_ENABLED are set to true.

References

/packages/twenty-server/src/engine/core-modules/auth/guards/google-apis-provider-enabled.guard.ts
/packages/twenty-server/src/engine/core-modules/auth/controllers/google-apis-auth.controller.ts

Ask Greptile

@weir1
Copy link
Author

weir1 commented Jun 23, 2024

The error message 'Google apis auth is not enabled' is thrown in the GoogleAPIsProviderEnabledGuard. Ensure that the environment variables MESSAGING_PROVIDER_GMAIL_ENABLED and CALENDAR_PROVIDER_GOOGLE_ENABLED are set to true.

References

/packages/twenty-server/src/engine/core-modules/auth/guards/google-apis-provider-enabled.guard.ts /packages/twenty-server/src/engine/core-modules/auth/controllers/google-apis-auth.controller.ts

Ask Greptile

I am using twenty via script aka docker
root@twenty:/twenty# ls -la
total 16
drwxr-xr-x 2 root root 4096 Jun 23 15:02 .
drwx------ 6 root root 4096 Jun 23 15:01 ..
-rw-r--r-- 1 root root 1072 Jun 23 15:02 .env
-rw-r--r-- 1 root root 2761 Jun 23 14:23 docker-compose.yml
root@twenty:
/twenty#

but I didnt find anywhere to enable these settings in .env file or docker-compose file

how to access those settings so that I can make them true

@weir1
Copy link
Author

weir1 commented Jun 23, 2024

I added these 2 lines in .env
MESSAGING_PROVIDER_GMAIL_ENABLED=true
CALENDAR_PROVIDER_GOOGLE_ENABLED=true

also in compose file i added
MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED}
CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}

when I run twenty then I am getting
This page isn’t working
s currently unable to handle this request.
HTTP ERROR 500

@volfadar
Copy link

volfadar commented Jun 24, 2024

I added these 2 lines in .env MESSAGING_PROVIDER_GMAIL_ENABLED=true CALENDAR_PROVIDER_GOOGLE_ENABLED=true

also in compose file i added MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED} CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}

when I run twenty then I am getting This page isn’t working s currently unable to handle this request. HTTP ERROR 500

i suspect you didn't fill the AUTH_GOOGLE_CLIENT_ID, AUTH_GOOGLE_CLIENT_SECRET, and AUTH_GOOGLE_APIS_CALLBACK_URL.

super({
clientID: environmentService.get('AUTH_GOOGLE_CLIENT_ID'),
clientSecret: environmentService.get('AUTH_GOOGLE_CLIENT_SECRET'),
callbackURL: environmentService.get('AUTH_GOOGLE_APIS_CALLBACK_URL'),
scope,
passReqToCallback: true,
});

@weir1
Copy link
Author

weir1 commented Jun 24, 2024

I added these 2 lines in .env MESSAGING_PROVIDER_GMAIL_ENABLED=true CALENDAR_PROVIDER_GOOGLE_ENABLED=true
also in compose file i added MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED} CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}
when I run twenty then I am getting This page isn’t working s currently unable to handle this request. HTTP ERROR 500

i suspect you didn't fill the AUTH_GOOGLE_CLIENT_ID, AUTH_GOOGLE_CLIENT_SECRET, and AUTH_GOOGLE_APIS_CALLBACK_URL.

super({
clientID: environmentService.get('AUTH_GOOGLE_CLIENT_ID'),
clientSecret: environmentService.get('AUTH_GOOGLE_CLIENT_SECRET'),
callbackURL: environmentService.get('AUTH_GOOGLE_APIS_CALLBACK_URL'),
scope,
passReqToCallback: true,
});

No I didnt should I add these in .env or compose file?

@weir1
Copy link
Author

weir1 commented Jun 24, 2024

OK Now I can see authentic with google but after connecting it shows 404 off the beaten path

@weir1
Copy link
Author

weir1 commented Jun 24, 2024

I added these 2 lines in .env MESSAGING_PROVIDER_GMAIL_ENABLED=true CALENDAR_PROVIDER_GOOGLE_ENABLED=true
also in compose file i added MESSAGING_PROVIDER_GMAIL_ENABLED: ${MESSAGING_PROVIDER_GMAIL_ENABLED} CALENDAR_PROVIDER_GOOGLE_ENABLED: ${CALENDAR_PROVIDER_GOOGLE_ENABLED}
when I run twenty then I am getting This page isn’t working s currently unable to handle this request. HTTP ERROR 500

i suspect you didn't fill the AUTH_GOOGLE_CLIENT_ID, AUTH_GOOGLE_CLIENT_SECRET, and AUTH_GOOGLE_APIS_CALLBACK_URL.

super({
clientID: environmentService.get('AUTH_GOOGLE_CLIENT_ID'),
clientSecret: environmentService.get('AUTH_GOOGLE_CLIENT_SECRET'),
callbackURL: environmentService.get('AUTH_GOOGLE_APIS_CALLBACK_URL'),
scope,
passReqToCallback: true,
});

No I didnt should I add these in .env or compose file?

I am attaching a my screen to show exact issue please check

Animation

@weir1
Copy link
Author

weir1 commented Jun 25, 2024

@volfadar please help

@volfadar
Copy link

I'm sorry i can't help right now, and now i'm not actively working with twenty right now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants