Are you looking at the right logs?
Also please edit your topic.
I go to more logs and nothing appears.
You didnât properly edit your topic.
What should I set it to?
Something unique, I would also reccommend you read older topics.
Changed it also I go to more logs and nothing appears.
I donât think youâre looking at the logs properly.
You still didnât properly edit the topic.
I can send you my logs?
For sure, you can do that here, just hide your api key.
2022-08-16T18:57:14.952499+00:00 app[web.1]: INFO: Shutting down
2022-08-16T18:57:14.952849+00:00 app[web.1]: INFO: Shutting down
2022-08-16T18:57:15.052967+00:00 app[web.1]: INFO: Waiting for application shutdown.
2022-08-16T18:57:15.053152+00:00 app[web.1]: INFO: Application shutdown complete.
2022-08-16T18:57:15.053227+00:00 app[web.1]: INFO: Finished server process [11]
2022-08-16T18:57:15.053263+00:00 app[web.1]: INFO: Waiting for application shutdown.
2022-08-16T18:57:15.053425+00:00 app[web.1]: INFO: Application shutdown complete.
2022-08-16T18:57:15.053503+00:00 app[web.1]: INFO: Finished server process [10]
2022-08-16T18:57:15.117552+00:00 app[web.1]: INFO: Stopping parent process [4]
2022-08-16T18:57:15.265196+00:00 heroku[web.1]: Process exited with status 0
When I open the app its this
2022-08-16T18:57:14.952499+00:00 app[web.1]: INFO: Shutting down
2022-08-16T18:57:14.952849+00:00 app[web.1]: INFO: Shutting down
2022-08-16T18:57:15.052967+00:00 app[web.1]: INFO: Waiting for application shutdown.
2022-08-16T18:57:15.053152+00:00 app[web.1]: INFO: Application shutdown complete.
2022-08-16T18:57:15.053227+00:00 app[web.1]: INFO: Finished server process [11]
2022-08-16T18:57:15.053263+00:00 app[web.1]: INFO: Waiting for application shutdown.
2022-08-16T18:57:15.053425+00:00 app[web.1]: INFO: Application shutdown complete.
2022-08-16T18:57:15.053503+00:00 app[web.1]: INFO: Finished server process [10]
2022-08-16T18:57:15.117552+00:00 app[web.1]: INFO: Stopping parent process [4]
2022-08-16T18:57:15.265196+00:00 heroku[web.1]: Process exited with status 0
2022-08-17T06:39:00.756276+00:00 heroku[web.1]: Unidling
2022-08-17T06:39:00.768121+00:00 heroku[web.1]: State changed from down to starting
2022-08-17T06:39:02.889333+00:00 heroku[web.1]: Starting process with command `uvicorn main:app --host=0.0.0.0 --port=${PORT:-5000}`
2022-08-17T06:39:05.238260+00:00 heroku[web.1]: State changed from starting to up
2022-08-17T06:39:05.162582+00:00 app[web.1]: INFO: Started server process [11]
2022-08-17T06:39:05.162624+00:00 app[web.1]: INFO: Waiting for application startup.
2022-08-17T06:39:05.162803+00:00 app[web.1]: INFO: Application startup complete.
2022-08-17T06:39:05.167036+00:00 app[web.1]: INFO: Started server process [10]
2022-08-17T06:39:05.167087+00:00 app[web.1]: INFO: Waiting for application startup.
2022-08-17T06:39:05.167263+00:00 app[web.1]: INFO: Application startup complete.
2022-08-17T06:39:03.978511+00:00 app[web.1]: INFO: Uvicorn running on http://0.0.0.0:28776 (Press CTRL+C to quit)
2022-08-17T06:39:03.978576+00:00 app[web.1]: INFO: Started parent process [4]
2022-08-17T06:39:06.875066+00:00 app[web.1]: INFO: 82.0.29.17:0 - "GET / HTTP/1.1" 404 Not Found
2022-08-17T06:39:06.964030+00:00 app[web.1]: INFO: 82.0.29.17:0 - "GET /favicon.ico HTTP/1.1" 404 Not Found
2022-08-17T06:39:06.963671+00:00 heroku[router]: at=info method=GET path="/favicon.ico" host=robloxranking2022.herokuapp.com request_id=4a571942-4f97-4765-bb1d-ed055ccfa5d1 fwd="82.0.29.17" dyno=web.1 connect=0ms service=1ms status=404 bytes=173 protocol=https
2022-08-17T06:39:06.874732+00:00 heroku[router]: at=info method=GET path="/" host=robloxranking2022.herokuapp.com request_id=5ef396c6-76f4-42b8-97ac-6841d5b0da66 fwd="82.0.29.17" dyno=web.1 connect=0ms service=1ms status=404 bytes=173 protocol=https
Youâre sending requests to the server, but youâre sending the requests to the wrong endpoints.
Also please add more description to your topic
Ok, what should I change my end point to?
What are you trying to achieve?
A training center with good accessible ranking
Can we see the configuration and the script that performs the ranking?
Ok. ill remove all features off API key and cookie.
local HttpService = game:GetService("HttpService")
local ReplicatedStorage = game.ReplicatedStorage
local AppUrl = script.AppUrl.Value
local ApiKey = script.ApiKey.Value
local Groupid = script.GroupId.Value
local MinRank = script.MinRank.Value
local prefix = "!"
local function FindPlr(plr)
local foundPlr = nil
local plrs = game.Players:GetPlayers()
for i = 1, #plrs do
local current = plrs[i]
if string.lower(current.Name):sub(1, #plr) == string.lower(plr) then
foundPlr = current.Name
break
end
end
return foundPlr
end
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(msg)
if player:GetRankInGroup(Groupid) >= 2 then
local LowerCaseMessage = string.lower(msg)
if string.find(LowerCaseMessage, prefix.. "promote") then
local SplitMessage = string.split(msg, " ")
local full_player = FindPlr(SplitMessage[2])
if full_player == nil then
local playerInstance = game.Players:FindFirstChild(player.Name)
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Uh-Oh","We couldn't find the player you wanted to promote!")
else
local playerInstance = game.Players:FindFirstChild(player.Name)
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Attempting.","Attempting to promote user...")
local Url = script.AppUrl.Value.."group/promote?user_name="..full_player.."&key=" ..script.ApiKey.Value.."&groupid="..script.GroupId.Value
local success, response = pcall(function()
local response = HttpService:GetAsync(Url)
local data = HttpService:JSONDecode(response)
end)
if success then
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Horrah!","We promoteed the user!")
else
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Uh-Oh","We had problems promoting the user.")
end
end
else if string.find(LowerCaseMessage, prefix.. "demote") then
local SplitMessage = string.split(msg, " ")
local full_player = FindPlr(SplitMessage[2])
if full_player == nil then
local playerInstance = game.Players:FindFirstChild(player.Name)
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Uh-Oh","We couldn't find the player you wanted to demote!")
else
local playerInstance = game.Players:FindFirstChild(player.Name)
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Attempting.","Attempting to demote user...")
local Url = script.AppUrl.Value.."group/demote?user_name="..full_player.. "&key=" ..script.ApiKey.Value.. "&groupid=" ..script.GroupId.Value
local success, response = pcall(function()
local response = HttpService:GetAsync(Url)
local data = HttpService:JSONDecode(response)
end)
if success then
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Horrah!","We demoted the user!")
else
game.ReplicatedStorage.Notify:FireClient(playerInstance, "Uh-Oh","We had problems demoting. the user.")
end
end
end
end
end
end)
end)