Suddenly receiving error: "MarketplaceService:getProductInfo() failed because HTTP 0 (HttpError: Timedout)"

My game is suddenly receiving this error: “MarketplaceService:getProductInfo() failed because HTTP 0 (HttpError: Timedout)”

MarketplaceService:GetProductInfo() is being called on the client, and as such, it seems to happen to some clients in the same server while not impacting others.

Does anybody have any idea what might be the cause of this? Is this a result of my doing something incorrectly, or are other people experiencing the same issue?

Usually it’s good practice to wrap those kinds of calls in pcall. Since you can never guarantee that you will successfully do something like that.

However I’ve gotten this error before without using :GetProductInfo() and it might as well be an engine bug.

I did that, but then entire sections of interface fail to load. While that prevents the entire game from breaking or something, it does create major bugs in the game and ruin user experience.

I use this feature throughout my game, but the function call that I’m getting the error in doesn’t actually invoke :GetProductInfo() at all, so that might make sense. I just assumed that it had to do with my calling of the method.

1 Like

GetProductInfo is a web call internally, so the fact that it’s throwing “HttpError: Timedout” means that there has to be something wrong with your implementation. Time outs are thrown when requests throttle. I further get this impression when you mention that some clients receive this error while others do not.

It would help if you posted a code snippet relevant to where GetProductInfo is being used. I strongly doubt it’s a bug and rather something to do with your implementation of the function.

2 Likes