400 Error - Incorrect HTTP API Arguments
tom42cap opened this issue · 0 comments
tom42cap commented
Hi,
I'm getting 400 - Incorrect HTTP API Arguments errors, saying that any required arguments are missing (for all the endpoints).
I'm making requests using Python 3 as follows:
def request(lua):
auth = HTTPBasicAuth(USERNAME, PASSWORD)
payload = { 'lua_source': lua }
res = requests.get(SPLASH_ENDPOINT, auth = auth, json = payload)
return res
And getting back (res.text):
'{"description": "Incorrect HTTP API arguments", "info": {"argument": "lua_source", "type": "argument_required", "description": "Required argument is missing: lua_source"}, "type": "BadOption", "error": 400}\n'
Where am I going wrong?