You can write your topic however you want, but you need to answer these questions:
- What do you want to achieve? Keep it simple and clear!
I want to find a alternative API for Roproxy.com that works with secure sites (https) so I no longer get this error:
HttpError: TlsVerificationFail
- What is the issue? Include screenshots / videos if possible!
I keep getting this error when using roproxy
HttpError: TlsVerificationFail
----- | Services | -----
local HttpService = game:GetService("HttpService")
local ServerStorage = game:GetService("ServerStorage")
local RunService = game:GetService("RunService")
local MarketplaceService = game:GetService("MarketplaceService")
----- | Variables | -----
local field = {}; field.__index = field
----- | Methods | -----
function field.getExperienceInfo()
local ExperienceDetails = HttpService:JSONDecode(HttpService:GetAsync(`https://games.roproxy.com/v1/games?universeIds={game.GameId}`))
local ExperienceVotes = HttpService:JSONDecode(HttpService:GetAsync("https://games.roproxy.com/v1/games/"..game.GameId.."/votes"))
local ExperienceBadges = HttpService:JSONDecode(HttpService:GetAsync(`https://badges.roproxy.com/v1/universes/{game.GameId}/badges?limit=50&sortOrder=Asc`))
if ExperienceDetails == nil then return end
ExperienceDetails = ExperienceDetails["data"][1]
ExperienceBadges = ExperienceBadges["data"]
if ExperienceDetails == nil then return end
return {
["Thumbnail"] = "rbxassetid://"..MarketplaceService:GetProductInfo(game.PlaceId).IconImageAssetId,
["Name"] = ExperienceDetails.name or "N/A",
["PlaceId"] = game.PlaceId or "N/A",
["UniverseId"] = game.GameId or "N/A",
["Description"] = ExperienceDetails.description,
["Voice Chat"] = false,
["Active"] = ExperienceDetails.playing,
["Visits"] = ExperienceDetails.visits or "N/A",
["Favorites"] = ExperienceDetails.favoritedCount or "N/A",
["Genre"] = ExperienceDetails.genre or "N/A",
["Playing"] = ExperienceDetails.playing or "N/A",
["PlaceVersion"] = game.PlaceVersion or "N/A",
["Updated"] = DateTime.fromIsoDate(ExperienceDetails.updated):ToUniversalTime() or "N/A",
["Created"] = DateTime.fromIsoDate(ExperienceDetails.created):ToUniversalTime() or "N/A",
["Creator"] = ExperienceDetails["creator"],
["Badges"] = ExperienceBadges or "N/A",
["Likes"] = ExperienceVotes.upVotes or "N/A",
["Dislikes"] = ExperienceVotes.downVotes or "N/A",
}
end
return field
All help is appreciated.