twentyhq / twenty

Building a modern alternative to Salesforce, powered by the community.
https://twenty.com
Other
20.32k stars 2.25k forks source link

Can't upload a record image #8425

Closed Bonapara closed 1 day ago

Bonapara commented 1 week ago

Bug description

Image can be uploaded but won't be saved

https://github.com/user-attachments/assets/044d3691-6e29-4388-ae21-7080112339e3

How to reproduce

Try to upload a file on any person record

yadavshubham01 commented 1 week ago

/assign

oss-gg[bot] commented 1 week ago

This issue is not part of oss.gg hackathon. Please pick a different one or start with a side quest

Bonapara commented 1 week ago

You can have a look @yadavshubham01 but I think this issue is complex

harshit078 commented 1 week ago

@Bonapara On inspecting it seems that when setting a photo, there is a 403 graphQL GET api call being failed. It is also apparent on going to RecordBoard page and clicking on the relation again without needing to refresh.

https://github.com/user-attachments/assets/34f5569b-58fa-445f-b341-806d3c6d3a35

ehconitin commented 1 week ago

@harshit078 I did have a look and it seems that two calls are being made first with a token and second without --- the second one fails --- however I need to dig further to know exactly why :( maybe it's the way the cache is being updated --- because I don't see a token in the cached URL -- although I am not sure :)

cheers!

Bonapara commented 2 days ago

Same issue for the account owner field:

CleanShot 2024-11-14 at 10 43 04