armochillo
armochillo
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
Just out of curiosity @prastoin , how do you switch between the core and metadata API? I am able to reach the graphQL API in selfhosted, but all queries and manipulations towards companies are failing, getting schema introspection returns metadata content. The api is under /grapql but i do not understand how to dedicatetly communicate with core API. I am using n8n and GraphQL Node to interact with the API. When using python locally to execute a script that submits a query to receive the introspection of schema, I am able to receive all relevant information, companies and custom objects. But when interacting with graphQL Api over n8n it seems I keep hitting the metadata API and no Idea where to change it 🤷‍♂️
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
This was previous context @Prastoin and thanks for giving additional information on API 🙂
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
hello @prastoin I did not fix the problem with API, but I Fixed the issue that we were not able to interface with the CRM system; However now we are able to use the GraphiQL API to make the integration, so the REST API not working is not an issue anymore. Are we correct to assume that we can do the implementation of our techstack with the CRM (e.g. tally forms being used to create new contacts) over the GraphiQL API or is it something that you would advise against?
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
We have fixed the issue ourselves most likely by ignoring the REST Api and simply use the GraphiQL API. Need to confirm further, but seems like Rest API is just not worth looking into at this point because at current understanding, GraphiQL API can do the same and more?
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
No description
55 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
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
where to add exactly, anywhere, e.g. at top? 😄
55 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
55 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! 👍
55 replies
TTwenty
Created by armochillo on 2/12/2025 in #❓︱help
Selfhosted API not working ;(
No description
55 replies