"Unhandled promise rejection" error in my script?

I’m trying to prompt an Invite Friends button using SocialService, and it works well. But, it throws a warning message that looks the picture below. How can I make the message disappear?

function onButtonPressed(player)
	local success, result = pcall(
	   function()
		 return SocialService:CanSendGameInviteAsync(player)
	end
	)
	
	if result == true then
		SocialService:PromptGameInvite(player)		
	end
end

It’s sad I have to revive this topic but I’m still getting the same message when prompting game invite. How do I fix this?

1 Like

It’s most likely an engine bug. You should report it in #bug-reports:engine-bugs.

Has this been patched/fixed?

Currently getting this error in my Output.

Started playing with SocialService today and immediately got stuck with this error

Did you find the problem because I’m getting it as well now and the warning is annoying…

Add a description too your game and it should go away!

1 Like

Thank you, this worked for me.

I also get this problem, it’s so annoying and I hate it, hopefully, they fix this.