T
Twentyβ€’3mo ago
ferdi9544

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
thomastβ€’3mo 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
Skyfox675β€’3mo 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
ferdi9544
ferdi9544OPβ€’3mo 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 !
ferdi9544
ferdi9544OPβ€’3mo ago
I have this weird error on the UI also, seems to be the object which are not legit
No description
Weiko
Weikoβ€’3mo 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?
ferdi9544
ferdi9544OPβ€’2mo 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
Weikoβ€’2mo ago
Hi @ferdi9544, I could reproduce the bug on my side, I'm trying to push a fix this afternoon
ferdi9544
ferdi9544OPβ€’2mo ago
Ok great, no rush, was just checking someone had this in mind πŸ‘Œ Will it fix the api call too ?
Weiko
Weikoβ€’2mo 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?
ferdi9544
ferdi9544OPβ€’2mo 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
Weikoβ€’2mo ago
Great. What error logs? You mean in the console? Or a toast message?
ferdi9544
ferdi9544OPβ€’2mo 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
Weikoβ€’2mo ago
Ah, I see what you mean. We have a ticket for that, thanks :). Shouldn't impact you directly I think
ferdi9544
ferdi9544OPβ€’2mo ago
Indeed doesn't seem to ! Great thanks !
Want results from more Discord servers?
Add your server