Http post request error

You can write your topic however you want, but you need to answer these questions:
I want to send the information to a Firebase database

Error: Unable to cast bool to token

I’m open to any help as I can’t figure it out. Thanks in advance.

game:GetService("HttpService"):PostAsync("database url"..game:GetService("HttpService"):UrlEncode("350421174" and "/".."350421174" or "")..".json?auth=".."data base secret key", {isStaff = true,banned = true, length = '1', reason = 'yeah'}, Enum.HttpContentType.ApplicationUrlEncoded, false, {["X-HTTP-Method-Override"]="PUT"})

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

PostAsync("database url"..game:GetService("HttpService"):UrlEncode("350421174" and "/".."350421174" or "")

Makes no sense.

Can you list:

  • The URL you’re sending a request to
  • The data you’re sending

I don’t want to publish the database URL here. I’ve checked it. It’s completely fine and working. The data I’m sending is in the code I sent. If you couldn’t see it it’s

{isStaff = true,banned = true, length = ‘1’, reason = ‘yeah’}

You can’t use the and operator to encode two strings with just one call.