rest api 500 errors permanent
Hi there, starting to explore the twenty offering.
The api however returns a permanent 500 error and no logging is shown (there was once a flash that i managed to capture) but since then permanent 500.
Have destroyed and recreated the containers and data volumes multiple times.
https://github.com/twentyhq/twenty/issues/7808
GitHub
TAG=v0.31.2 - All rest calls 500 · Issue #7808 · twentyhq/twenty
Bug Description All rest calls to any endpoint result in a 500 error (which does not show in logs nor in stdout) Example: curl -vv --request GET \ --url http://0.0.0.0:3010/rest/timelineActivities ...
5 Replies
@martmull
answered there @rosscdh
@rosscdh I can't reproduce, see my comment on https://github.com/twentyhq/twenty/issues/7808
Did I miss something?
GitHub
TAG=v0.31.2 - All rest calls 500 · Issue #7808 · twentyhq/twenty
Bug Description All rest calls to any endpoint result in a 500 error (which does not show in logs nor in stdout) Example: curl -vv --request GET \ --url http://0.0.0.0:3010/rest/timelineActivities ...
Hey thanks.. as responded its a stock standard docker compose no magic..
Cant include compose becuase discord char limit
almost stock compose
1. dont use data volumes i prefer local mounts
2. commented out exposed ports on redis and psotgres as dont need to debug data
3. commented restart: always.. this is not production
4. 3010:3000 for main port on server
but none of that would affect system internals afaik
I redownloaded the original one.. but that one breaks due to the REDIS_HOST issue thats an issue in github already..
sorry im so keen to use this tooling its looks so great..
I just... found the issue...
docker compose
ports:
- 3010:3000 <---- it seems the system uses the internal running port as part of the token generation
I changed to run on 3010 via the env var and the internal port mapping and voila
👍
Ok!
Yes, there is an issue with the docker-compose on main, please add both REDIS_HOST and REDIS_URL for now
I think that's it, the REST API is making an http call to the Graphql API for now (we are changing it, likely this month) so you might have faced networking issue
sort of..
1. I encountered and raised the REDIS_URL issue yesterday, the fix was to add REDIS_HOST
2. this issue was because the server is set to run on 3000 and issues tokens based on that port .... however... if in compose you say .. outer port is 3010:3000 <-- inner port maps the server will not recognise requests coming in on 3010 ... its a bit weird tbh.. security should not be bound to ports imho.