armochillo
Selfhosted API not working ;(
thanks! We changed it, now we get this out of logfiles:
Exception Captured
{ user: undefined, workspace: undefined }
[
TypeError: Cannot read properties of undefined (reading 'data')
at RestApiService.call (/app/packages/twenty-server/dist/src/engine/api/rest/rest-api.service.js:51:71)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RestApiCoreService.get (/app/packages/twenty-server/dist/src/engine/api/rest/core/rest-api-core.service.js:26:16)
at async RestApiCoreController.handleApiGet (/app/packages/twenty-server/dist/src/engine/api/rest/core/controllers/rest-api-core.controller.js:39:24)
]
Exception Captured
{ user: undefined, workspace: undefined }
[
TypeError: Cannot read properties of undefined (reading 'data')
at RestApiService.call (/app/packages/twenty-server/dist/src/engine/api/rest/rest-api.service.js:51:71)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async RestApiCoreService.get (/app/packages/twenty-server/dist/src/engine/api/rest/core/rest-api-core.service.js:26:16)
at async RestApiCoreController.handleApiGet (/app/packages/twenty-server/dist/src/engine/api/rest/core/controllers/rest-api-core.controller.js:39:24)
]
You want me to trigger a certain API Function for further testing?
@charles
40 replies
Selfhosted API not working ;(
so esentially @David and myself are receiving 500 error for almost all API Calls (did you try to submit the get Api Scheme Call? This worked for me, 200 returned)
and it is not possible to retrieve anything in the logs, feels like we are stuck 😦
40 replies
Selfhosted API not working ;(
100.82.116.198 - - [14/Feb/2025:09:08:21 +0000] "GET /rest/apiKeys HTTP/1.1" 500 0 "https://twenty.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" "-"
100.82.116.198 - - [14/Feb/2025:09:08:27 +0000] "GET /rest/auditLogs HTTP/1.1" 500 0 "https://twenty.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" "-"
100.82.116.198 - - [14/Feb/2025:09:08:31 +0000] "GET /rest/attachments HTTP/1.1" 500 0 "https://twenty.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" "-"
100.82.116.198 - - [14/Feb/2025:09:08:42 +0000] "GET /rest/attachments/tst HTTP/1.1" 500 0 "https://twenty.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:134.0) Gecko/20100101 Firefox/134.0" "-"
It is not possible for us to find other logs in regards of those API call attempts
40 replies
Selfhosted API not working ;(
We are wondering wether this might be the issue?
and if yes, what should be the values for those variables? 🤔
"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
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"
40 replies
Selfhosted API not working ;(
100.82.116.198 - - [12/Feb/2025:16:49:10 +0000] "GET /rest/notes HTTP/1.1" 500 0 "https://twenty.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36 Edg/133.0.0.0" "-"
Only found this in the http proxy container
40 replies
Selfhosted API not working ;(
I am asking this because we try to connect windmill (selfhosted) with twentyCRM (selfhosted) but we want to ensure that API is working correctly on twentyCRM side and I was under the impression that testing API can be done easily with this swagger like doc
40 replies
Selfhosted API not working ;(
no, I created in our twnetycrm system an API Key, provided the custom path in the URL that I just posted, put in API key, got success ful authentication . or are you telling me that its not possible to use this kind of API documentation with live testing with self hosted? If that is the case, how can we test against our own API?
40 replies