MessagingService SubScribeAsync callback not invoked

I’m having an issue with my MessagingService event. It used to work fine before but somehow stopped working when I tested it earlier today. The OnProductBought function runs fine, and it also prints “Publish”, but either it doesn’t properly call PublishAsync, or SubScribeAsync is never received. Even when using a print statement in the SubScribeAsync connection, it doesn’t print. Anyone knows what the issue could be?

Yes this is a server script

MessagingService:SubscribeAsync("LuckEvent", function(message)
	activateLuckEvent(message.Data) -- This never runs
end)

local function OnProductBought(player)
	-- Publish message to activate event
	local message = {
		Data = {
			buyer = player.Name,
		}
	}
	print("Publish") -- This prints
	MessagingService:PublishAsync("LuckEvent", message)
end

events.BoughtLuckEvent.Event:Connect(function(player)
	OnProductBought(player)
end)
2 Likes

Having the same issue, think it’s because Roblox Services are down: https://status.roblox.com

I hope it is. I changed nothing in my code so if I am the reason it doesn’t work I wouldn’t know what the issue was. But it indeed seems to be an internal issue.

2 Likes

Sorry for bumping but the issue still seems to be around for me. Has it been fixed on your side?

Yeah after the Service came back up, I had no more issues

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.