Skip to content

Error while adding app using CURL #719

@izzaldeen98

Description

@izzaldeen98

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 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions