36 questions
0
votes
1
answer
73
views
How to run a local server with podman?
I'm using fn for deploying serverless functions in Oracle Cloud in a Mac Intel.
I use podman as a docker container.
This is my .fn/config.yaml
cli-version: 0.6.42
container-enginetype: podman
current-...
1
vote
2
answers
93
views
Different results for function() and fn(). PHP
I have a problem.
$this->allIds->each(function ($id) {
$this->checked[$id] = $this->checkedAll;
});
And this:
$this->allIds->each(fn($id) => $this->checked[$id] = $this-&...
5
votes
0
answers
277
views
Error invoking function. status: 500 message: internal server error
I try to invoke a fn-project function (hello-world) locally on my MacOS(x86) but I get an error message:
# latest version of fnserver is running
docker container ls -fname=fnserver
CONTAINER ID ...
0
votes
1
answer
95
views
Unable to execute bash commands from GO function (FN project)
When I try running :
cmd := exec.Command("bash", "-c", "docker ps")
outp, err := cmd.Output()
log.Print("outp", outp)
if err != nil {
log.Fatalln("...
4
votes
1
answer
123
views
Capturing FnMut closure doesn't live long enough
Problem
In short: I'm trying to implement an struct that contains a callback to an closure, which captures state mutably. Idea is that user provides callback (closure) and can be informed later when a ...
2
votes
0
answers
41
views
Rust, what decides a function name is a fn pointer to fn item? [duplicate]
Here is the code that works.
use core::future::Future;
async fn haha(ctx: u8) -> u8 {
return 2u8;
}
fn set_func<T>(path: &'static str, f: fn(u8) -> T) -> u8
where
T: ...
1
vote
0
answers
55
views
Running FN Server on a Openshift Cluster without --privileged flag
We are trying to deploy FN server in an Openshift Cluster without privileged security context, only enabling root mode (not privileged), but we are getting this error:
`
/usr/local/bin/preentry.sh: ...
1
vote
0
answers
95
views
How to create an async function in Fn project
I am trying to create a FAAS in FN using Python. The problem is that I want my function to be executed asynchronously. I read in the FN documentation that this is possible by adding the following code ...
0
votes
0
answers
154
views
FN Lock in Flutter
I was designing an desktop application with Flutter-Desktop and was wondering if there was a function or other Widget that I could use to lock the 'fn' key. Currently I have not found anyway to do so, ...
1
vote
1
answer
200
views
How to increase fn project function timeout beyond 300 seconds
I have a long running script that cannot be optimized (API calls to an incredibly slow service). It takes longer than 300 seconds, but in the documentation the maximum timeout is 300 seconds (https://...
0
votes
0
answers
181
views
Fn function terminates before timeout
I have set the timeout in func.yaml to 300 seconds (5 minutes) but the function only runs for 2 minutes and then terminates with error code 502.
Error invoking function. status: 502 message: error ...
0
votes
1
answer
530
views
FN Hello World App 8080 Connection Issues
I'm following the Introduction to Fn with Python Tutorial here. I'm on Mac Catalina 10.15.7.
When I run the command "fn create app pythonapp" in my terminal, I receive the error
Fn: Post &...
0
votes
4
answers
505
views
Minimise / eradicate initial FN spin up delay for OCI API GW authorisation
We are using an FN Function for OCI API Gateway authorisation (https://docs.cloud.oracle.com/en-us/iaas/Content/APIGateway/Tasks/apigatewayusingauthorizerfunction.htm). We're finding that there is a ...
2
votes
1
answer
668
views
GET method not allowed to fn applications
I'm new to the Fn project, have created the first app in java using fn init --runtime java HelloWorld-func and tried few other scenarios, but faced an issue with GET call.
Not able to make GET call, ...
-1
votes
1
answer
389
views
Combination Fn::Join and Fn::Select in Cloudformation template
How to combine Fn::Join and Fn::Select in Cloudformation template