iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.18k stars 227 forks source link

Error while adding app using CURL #719

Open izzaldeen98 opened 5 months ago

izzaldeen98 commented 5 months ago

Hi Guys ,

I'm trying to add a function using the following python code :

import requests
import json

header = {
    "Content-Type": "application/json",
    "app":json.dumps({"name":"testfunc"})
}
response = requests.post("http://localhost:8888/v1/apps" , headers=header)

but I get the following error : {"error":{"message":"Invalid JSON"}}

Knowing that my function is pre dockerzied image , named testfunc

please assist on this .