I need some help on sending this data with JSON

soo for some reason the output prints the JSON table and all works but the SetAsync and all after he dont work idk why

	game.Players.PlayerRemoving:Connect(function()
	
		
	Values = Folder:GetChildren() -- Handle All items on the players folder in one variable every time the event fires

		for i,v in ipairs(Values) do
			table.insert(Items, v.Name)
			
			
			
			
			
			
		end
		
		local json = HttpService:JSONEncode(Items)
		print(json)
		print("ez1")
		IventoryData:SetAsync(PlayerId, json)
		print("ez2")
	 end)
	end)

Help

output image

Try checking the interaction between the website and what it is been given(the table).

Your session ended before SetAsync can finish. You can use game:BindToClose to yield until the asynchronous call resolves.

1 Like