Replies: 1 comment 4 replies
-
|
@georak If you are using type literal you need to pass literal value in the payload. You can try Also, there is a rebuild command if it helps. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Question 1
I am trying to create a package by using API.
below is the request
POST /v2/packages
body:
{ "metadata": { "name": "NAME", "namespace": "NAMESPACE" }, "spec": { "environment": { "namespace": "default", "name": "node" }, "deployment": { "type": "url", "url": "https://raw.githubusercontent.com/fission/fission/master/examples/nodejs/hello.js" } }, "status": { "buildstatus": "pending" } }The only problem is that package state is "running" and after 5 minutes it fails with this error:
max retries exceeded in building source package, timeout due to environment builder not ready
pkg info
Do I have to change something on the payload to make it work?
Question 2
Can I pass the code as string like this?
"deployment": {
"type": "literal",
"url": CODE_AS_BASE64_ENCODED_STRING
}
Beta Was this translation helpful? Give feedback.
All reactions