twenty icon indicating copy to clipboard operation
twenty copied to clipboard

Bug when trying to access the file page

Open Bonapara opened this issue 1 year ago • 3 comments

Description

When accessing the files tab on a company show, an alert gets triggered:

Error during useFindManyRecords for "attachments", Response not successful: Received status code 400

Screenshot 2024-01-08 at 18 40 31

Bonapara avatar Jan 08 '24 17:01 Bonapara

I'm not able to reproduce it. Does it happen on every page for you or is there a specific pattern? would it be possible give the response to the graphql request (from your network tab)?

FelixMalfait avatar Jan 08 '24 21:01 FelixMalfait

{ "errors": [ { "message": "Variable \"$filter\" got invalid value { companyId: { eq: \"8ad6b436-0b8b-4c7e-b649-946305aa8e5e\" } }; Field \"companyId\" is not defined by type \"AttachmentFilterInput\". Did you mean \"company\"?", "locations": [ { "line": 1, "column": 27 } ] } ] }

Bonapara avatar Jan 09 '24 09:01 Bonapara

I realize with your error message I had logged it too: https://github.com/twentyhq/twenty/issues/2796

FelixMalfait avatar Jan 09 '24 09:01 FelixMalfait