Http service error 422

local pastebinDatas = {
										["api_dev_key"] = "my api key";

										["api_option"] = "paste",
										["api_paste_name"] = player .. "(" .. playerName .. ")",
										["api_paste_code"] = "it works?",
										["api_paste_format"] = "text",
										["api_paste_expire_date"] = "1D",        
										["api_paste_private"] = "1",
										["api_user_key"] = ""
									}
									local pastebinData = ""
									for k, v in pairs(pastebinDatas) do
										pastebinData = pastebinData .. ("&%s=%s"):format(game:GetService("HttpService"):UrlEncode(k), game:GetService("HttpService"):UrlEncode(v))
									end
									pastebinData = pastebinData:sub(2)
									local pastebinLink = game:GetService("HttpService"):PostAsync("https://pastebin.com/api/api_post.php", pastebinData, Enum.HttpContentType.ApplicationUrlEncoded, false)

it worked yesterday and suddenly prints HTTP 422 (Unprocessable entity) error. what’s problem?

1 Like

2 Likes