I have a web API that queues commands through MessagingService. However when my API returns the result, it is a blank string. This doesn’t seem to be a problem on my API’s end because it’s just returning what MessagingService is.
Here’s my endpoint’s code, if it matters:
And here’s how I’m making the request to my API:
local success, returned = pcall(function()
return HTTPService:RequestAsync({
Url='https://api.rac-corp.net/roblox/process-commands',
Method='POST',
Headers={
['Content-Type']='application/json',
Authorization=''
},
Body=HTTPService:JSONEncode({
username='3ZMWe',
command='test',
args='test'
})
})
end)
return success and returned
Any input on if MessagingService is supposed to return a blank string for a successful request or if it’s something else would be appreciated. Thanks!
