#profile_key must be a string but it is- (ProfileService)

1 messages · Page 1 of 1 (latest)

upbeat spruce
#

I am using profile service and I mistakingly made the key for the player a player id number and not a string, I fixed the issue but the error message still persists, was the invaild key saved?

#
PlayerStore.StartSessionAsync(tostring("Player_"..player.UserId)
#

thats what the fixed agurment looks like

#

ServerScriptService.Libraries.ProfileStore:1369: [ProfileStore]: profile_key must be a string [table: 0x86fe079ba1c755ce]

#

error message with key its finding

plucky root
#

I think the error show somewhere else?

It doesnt matter if you saved it in player.UserID, and the tostring() is kinda pointless, since you already defined it as string if you use "Player_"...

upbeat spruce
#

the error keeps going back to the same startsessionaysnc line

deep cairnBOT
#

studio** You are now Level 4! **studio

plucky root
#

Dunno, the error is cleary saying, youre using a table, instead string.

Your 1 line of code looks pretty fine to me.

upbeat spruce
#

yeah is so werid

#

the line is fixed and I am using a string but it keeps saying im using a table

#

thats why I think I saved a invaild key and its trying to get it or something

plucky root
#

I don't think so, i assume youre in Studio, im pretty sure they will not be saved, after closing test game.

upbeat spruce
#

ok imma check to so if any data was actually stored

white jolt
#

playerstore should be an object

#

you arent using a method

upbeat spruce
#

thank u

#

yeah thats it

white jolt