this worked, i believe, a few months ago, and now it doesn’t. it is for sending feedback from my game. the error in the output is HttpError: DnsResolve - Server - SendFeedback:49
local event = game.ReplicatedStorage.AdditionalRemotes.SendFeedback
local httpService = game:GetService('HttpService') -- Hypertext Transfer Protocol
local proxy = 'hooks.hyra.io'
local webhook = ''
event.OnServerEvent:Connect(function(player,feedbacktype,feedbackcategory,feedbacktext)
-- pfp
local s, pic_url = pcall(function()
return httpService:JSONDecode(httpService:GetAsync("https://thumbnails.roproxy.com/v1/users/avatar-headshot?userIds="..player.UserId.."&size=150x150&format=Png")) --use api and proxy to get LINK, you can change size
end)
if s and pic_url then
pic_url=pic_url.data[1].imageUrl
else
--pic_url="https://t3.rbxcdn.com/9fc30fe577bf95e045c9a3d4abaca05d" --link if can't get player headshot (default img)
end
if feedbacktype == "Idea" then
print("idea")
webhook = 'https://hooks.hyra.io/api/webhooks/700495450058391692/rO8DfwChxHKOHoyTZr3VFGIjnGhlPTA2TWkq9tnXgcOMgosI1SqhyAyhk7pP1zr5rxPZ'
elseif feedbacktype == "Glitch" then
print("glitch")
webhook = 'https://hooks.hyra.io/api/webhooks/1157810841811435562/3ya_u0_lYNUh771HrKfsLimuHVLS93WVIXsTRVmouOfB_dz6Wjs7h8OxmvWjrKslkM-d'
end
-- create embed
local data = {
content = nil,
username = player.DisplayName,
avatar_url = pic_url,
embeds = {{
title = feedbackcategory,
description = feedbacktext,
color = 0xff0000, -- red
fields = {{
name = 'Player ID:',
value = player.UserId,
inline=true
}, {
name = 'Player Username:',
value = player.Name,
inline=true
}}
}}
}
data.content=nil
httpService:PostAsync(webhook, httpService:JSONEncode(data), Enum.HttpContentType.ApplicationJson)
end)