I’m trying to send a request to an endpoint in my API. I have tried doing so in other services and it works fine, but doing so in roblox results in an HTTP 500 error.
Here’s the code:
local request=HTTPService:RequestAsync({
Url="https://api.rac-corp.net/v2/roblox/iimf/group/shout",
Method="PATCH",
Headers={
Authorization="not showing my key >:("
},
Body=HTTPService:JSONEncode({
text="test"
})
})
print(request.Body)
Here’s what it returns:
{
"status": 500,
"code": 0,
"detail": "Internal Server Error",
"errors": [
{
"type": "internal",
"filename": "/opt/render/project/python/Python-3.12.7/lib/python3.12/json/encoder.py",
"line": 180,
"error": "TypeError",
"message": "Object of type bytes is not JSON serializable"
}
],
"messages": []
}
Because of this I am leading myself to think this is a bug, but to be honest I’m mediocre at programming… sooooo… any solutions?