# No Data received when trying to share a data to another client (Godot)

**URL:** <https://forum.heroiclabs.com/t/no-data-received-when-trying-to-share-a-data-to-another-client-godot/5419>\
**Category:** Documentation\
**Created:** [July 5, 2024, 1:00pm UTC](https://forum.heroiclabs.com/t/no-data-received-when-trying-to-share-a-data-to-another-client-godot/5419 "2024-07-05T13:00:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ProJason](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@ProJason](https://forum.heroiclabs.com/u/ProJason)\
**Post date:** [July 5, 2024, 1:00pm UTC](https://forum.heroiclabs.com/t/no-data-received-when-trying-to-share-a-data-to-another-client-godot/5419/1 "2024-07-05T13:00:57Z")

</div>

Godot 4.0 (Nakama Godot 4 Client v.3.3.1) + nakama(v3.22.0)

Hello/hi everyone Im having trouble here when sharing a data, I have two function here for read and write.

function for sharing a data to another and set read permission into a public  
var data = {}  
data[acc.user.id] = {  
‘user\_id’: acc.user.id  
}

```
var result : NakamaAPI.ApiStorageObjects = await GlobalObject.client.write_storage_objects_async(GlobalObject.session, [
	NakamaWriteStorageObject.new("Player","member", 2, 1, JSON.stringify(data),'')
])

```

and here reading/receiving a data by another client.

```
var result : NakamaAPI.ApiStorageObjects = await GlobalObject.client.read_storage_objects_async(GlobalObject.session, [
	NakamaStorageObjectId.new("Player","member")
])

```

in the result there is no error but still received none. is there a problem with the version or something is wrong in my code.

---

<div class="post-metadata">

**Author:** ![ProJason](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@ProJason](https://forum.heroiclabs.com/u/ProJason)\
**Post date:** [July 5, 2024, 1:31pm UTC](https://forum.heroiclabs.com/t/no-data-received-when-trying-to-share-a-data-to-another-client-godot/5419/2 "2024-07-05T13:31:54Z")

</div>

I just found a solution guys its actually already in the topic here [How to create global storage object from client1 and read it from client2 - #3 by Jorge](https://forum.heroiclabs.com/t/how-to-create-global-storage-object-from-client1-and-read-it-from-client2/1648/3).

here is the fixed code:  
from  
(Mistake)  
var result : NakamaAPI.ApiStorageObjects = await GlobalObject.client.read\_storage\_objects\_async(GlobalObject.session, [  
NakamaStorageObjectId.new(“Player”,“member”)  
])

to  
(Solution)  
var result = await GlobalObject.client.list\_storage\_objects\_async(GlobalObject.session, “Player”, ‘’, 100)
