API : Error 500 while fetching all companies

When I use the API (code or web interface) I get this error: 500 Internal Server Error No supported response body returned I deactive the multi-select field we had for the company object but didn't change anything. Others objects are fetchable. Our space name is Colec. We're on the cloud formula
14 Replies
thomast
thomast5mo ago
Hi @ferdi9544, I checked your account and I can see the companies as expected. Did you fix the issue? Or do you have an example of query that does not work?
Skyfox675
Skyfox6755mo ago
You can try setting depth: 0 in your query, i hit the "too many attributes, max of 100 supported" from time to time, but I heard mention the v0.24.0 might address this. Not sure if this is what you're running into but something to try if you haven't already
Ferdinand H
Ferdinand HOP5mo ago
I tried with the curl and with the interface you are offering I get either no result or error We are on the 0.24 on the app Should be the same for the api right ? And also with n8n I get this error message : 400 - "{\"statusCode\":400,\"messages\":[\"GraphQL errors on company: {'message':'Unknown field 'adressAddressStreet1' on type 'company''}\"],\"error\":\"Bad Request\"}" @thomast Also sorry for the confusion I meant the web interface of the api to fetch the data !
Ferdinand H
Ferdinand HOP5mo ago
I have this weird error on the UI also, seems to be the object which are not legit
No description
Weiko
Weiko5mo ago
Hi @ferdi9544, can you provide an example of a request that fail so I can reproduce on my side? Does the rest of the app load?
Ferdinand H
Ferdinand HOP5mo ago
I update the city in the address field And for the api I just get the endpoints companies with no additional information @Weiko any news ?
Weiko
Weiko5mo ago
Hi @ferdi9544, I could reproduce the bug on my side, I'm trying to push a fix this afternoon
Ferdinand H
Ferdinand HOP5mo ago
Ok great, no rush, was just checking someone had this in mind 👌 Will it fix the api call too ?
Weiko
Weiko5mo ago
It might. Looks like your data model is broken and I'm trying to understand why 🙂 (and the API is affected by it since it's auto-generated with your data model) There is an "adress" field that was not properly created Did you try to rename this field by any chance? @ferdi9544 can you try again?
Ferdinand H
Ferdinand HOP5mo ago
I tried : - When updating the city through web interface : some error logs are still there but the change seem persistent - The API call send a response ! 🥳
Weiko
Weiko5mo ago
Great. What error logs? You mean in the console? Or a toast message?
Ferdinand H
Ferdinand HOP5mo ago
Not sure but I remember it was at the very beginning of this field so maybe there were some modification since In the console No toast
Weiko
Weiko5mo ago
Ah, I see what you mean. We have a ticket for that, thanks :). Shouldn't impact you directly I think
Ferdinand H
Ferdinand HOP5mo ago
Indeed doesn't seem to ! Great thanks !

Did you find this page helpful?