armochillo
armochillo
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
No description
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
where to add exactly, anywhere, e.g. at top? 😄
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
{ "statusCode": 400, "error": "TypeError", "messages": [ "Cannot read properties of undefined (reading 'data')" ] } Getting 400 now instead of 500, interestingly
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
@charles I believe the execption catching is working as intendend! 👍
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
No description
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
sure, would like to send you a calendar book link via pm
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
No worries, welcome to the party 😄 the more, the merrier
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
We were able to create some logs after firing the curl requests that were copy pasted from the api documentation
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
Hey, thanks for the suggestion, will refer to devops and come back to you 🙂 thanks!
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
thanks, let us check
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
@thomast not sure if we configured something wrong on our side
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
Yes correct! I could also see custom API calls for the custom objects. Will refer to system admin and produce logs, just a sec,. thanks!
40 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
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
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
yes, still using the api doc you are hosting to validate the API calls while switching to other environment and putting in the address of our own self hosted environment
40 replies