Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while adding app using CURL #719

Open
izzaldeen98 opened this issue Apr 20, 2024 · 0 comments
Open

Error while adding app using CURL #719

izzaldeen98 opened this issue Apr 20, 2024 · 0 comments

Comments

@izzaldeen98
Copy link

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 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant