I have an error every time I request my Firebase database.
Here is the code:
--[[
3/25/22 Sam
Module for Fire base real time Database.
]]
local HTTP = game:GetService("HttpService")
local RS = game:GetService("RunService")
local DB_URL = 'https://roblox-a6eda-default-rtdb.firebaseio.com/'; -- URL to DB
local FB_Main = {}
FB_Main.__index = FB_Main;
function FB_Main.ViewStructure() : string
return HTTP:GetAsync(DB_URL..".json")
end
function FB_Main.PUT()
print(HTTP:PostAsync(DB_URL..".json", [[-X PUT -d '{"Test" : 2}']]))
end
return FB_Main
local MOD = require(game.ServerStorage.FBRealTime)
print(MOD.ViewStructure())
MOD.PUT()
print(MOD.ViewStructure())
Here is the error:

