BigBadVoodoo
BigBadVoodoo
TTwenty
Created by BigBadVoodoo on 5/20/2025 in #❓︱help
M365 email and calendar sync fails
No description
12 replies
TTwenty
Created by BigBadVoodoo on 5/15/2025 in #❓︱help
[self-hosting] M365 link doesn't seem to be working
No description
18 replies
TTwenty
Created by BigBadVoodoo on 5/13/2025 in #❓︱help
API 500 on GET only
Hi, I run twenty 0.52.8 via docker-compose, pretty much just the default docker-compose.yml that I found on your GitHub. Now trying to use the REST API. I have set up my key and I can do POST just fine but GET gives me this behavior : - first call after a docker compose up gives me this : {"statusCode":400,"message":"Metadata cache version not found","error":"Bad Request"} - all the following calls just give me a 500 with no output My requests are as follows :
curl -v -L -s -H "Accept: application/json" -H "Authorization: Bearer mybearertoken" https://crm.mydomain.local/rest/companies
curl -v -L -s -H "Accept: application/json" -H "Authorization: Bearer mybearertoken" https://crm.mydomain.local/rest/companies
GET works fine with /rest/open-api/core and /rest/open-api/metadata, but for the rest of /rest/* it's pretty much only 500's I have tried with and without a reverse proxy, it doesn't change anything here is my .env file :
TAG=v0.52.8

PG_DATABASE_USER=postgres
PG_DATABASE_PASSWORD=postgres-pass
PG_DATABASE_HOST=db
PG_DATABASE_PORT=5432
REDIS_URL=redis://redis:6379
REDIS_HOST=redis://redis:6379

#SERVER_URL=http://localhost:3000
SERVER_URL=https://crm.mydomain.local
REACT_APP_SERVER_BASE_URL=https://crm.mydomain.local
SIGN_IN_PREFILLED=false

# Use openssl rand -base64 32 for each secret
APP_SECRET="appsecret="

STORAGE_TYPE=local

LOG_LEVELS=log,warn,error
TAG=v0.52.8

PG_DATABASE_USER=postgres
PG_DATABASE_PASSWORD=postgres-pass
PG_DATABASE_HOST=db
PG_DATABASE_PORT=5432
REDIS_URL=redis://redis:6379
REDIS_HOST=redis://redis:6379

#SERVER_URL=http://localhost:3000
SERVER_URL=https://crm.mydomain.local
REACT_APP_SERVER_BASE_URL=https://crm.mydomain.local
SIGN_IN_PREFILLED=false

# Use openssl rand -base64 32 for each secret
APP_SECRET="appsecret="

STORAGE_TYPE=local

LOG_LEVELS=log,warn,error
I don't know how to get logs other than docker compose logs, which isn't very talkative
36 replies