michele.laurelli
Error: Error refreshing access token: Request failed with status code 400
Hello everyone, I need your help.
After setting up the worker, the accounts are not synced.
Looking up the worker logs it shows:
worker-1 | [Nest] 73 - 05/17/2024, 8:26:39 AM ERROR [GmailFullSyncJob] Error refreshing access token for connected account XXXXX in workspace XXXX
Error: Error refreshing access token: Request failed with status code 400
This is my .env
TAG=latest
PG_DATABASE_HOST=db:5432
NGINX_PUBLIC_PORT=80
NGINX_PUBLIC_SSL_PORT=443
SERVER_URL={server_url}
SIGN_IN_PREFILLED=true
STORAGE_TYPE=local
STORAGE_LOCAL_PATH=../../.local-storage
ACCESS_TOKEN_SECRET=xxxx
LOGIN_TOKEN_SECRET=xxxx
REFRESH_TOKEN_SECRET=xxxx
FILE_TOKEN_SECRET=xxxx
POSTGRES_ADMIN_PASSWORD=xxxx
MESSAGING_PROVIDER_GMAIL_ENABLED=true
AUTH_GOOGLE_ENABLED=true
MESSAGING_PROVIDER_GMAIL_ENABLED=true
CALENDAR_PROVIDER_GOOGLE_ENABLED=true
AUTH_GOOGLE_CLIENT_ID=xxxx
AUTH_GOOGLE_CLIENT_SECRET=xxxx
AUTH_GOOGLE_CALLBACK_URL={server_url}auth/google/redirect
AUTH_GOOGLE_APIS_CALLBACK_URL={server_url}/auth/google-apis/get-access-token
Can you please help?9 replies