Questions tagged [fn]

Questions related to the Fn project, a container-native serverless platform

FN is container native, cloud agnostic serverless platform.

Site: http://fnproject.io

Github: https://github.com/fnproject/fn

34 questions
3
votes
1 answer

Triggering the fulfillment webhook asynchronously from an intent?

I have some intents that need to trigger the fulfillment webhook and don't care about the response. The webhook takes longer than the timeout to respond so I'd like the intent to simply respond with "Thanks for chatting" and then close the…
Chad
  • 1,818
  • 2
  • 15
  • 23
3
votes
1 answer

Centos: fn start : mounting none on /sys/kernel/security failed: Permission denied

After installing fn from https://github.com/fnproject/fn I run "fn start" as root I get the following error [root@localhost my-docker-app]# fn start sh: overlay: unknown operand mount: mounting none on /sys/kernel/security failed: Permission…
venergiac
  • 7,469
  • 2
  • 48
  • 70
2
votes
0 answers

Rust, what decides a function name is a fn pointer to fn item?

Here is the code that works. use core::future::Future; async fn haha(ctx: u8) -> u8 { return 2u8; } fn set_func(path: &'static str, f: fn(u8) -> T) -> u8 where T: Future + Send + 'static, { return 8u8; } fn main() { …
Kenneth
  • 403
  • 4
  • 12
2
votes
1 answer

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, but POST call works fine. I didn't make any…
Ashok
  • 461
  • 2
  • 5
  • 23
2
votes
0 answers

node.js - Error: failed to connect to server [localhost:27017] on first connect [MongoNetworkError: connect ECONNREFUSED 127.0.0.1:27017]

I'm new in nodeJS and mongodb. I learned all these stuffs from YouTube. I tried to create an api using node.js but now I can't even connect to the mongodb. The problem is I uses Fn project(runtime node) and tried to connect to the mongodb but it…
1
vote
0 answers

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: set: line 14: can't access tty; job control turned…
1
vote
0 answers

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 to func.yaml. type: async But it didn't work!…
1
vote
1 answer

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…
Ayyub Omer
  • 21
  • 2
1
vote
2 answers

Cloudformation:: Condition to the ManagedPolicyArns based on the Environment

I am trying to add a condition to the ManagedPolicyArns based on the environment, it has to run a specify policy Here's my code: Conditions: IsEnvProd: Fn::Equals [!Ref Env, 'prod'] ManagedPolicyArns: - Fn::If: -…
rk123
  • 85
  • 2
  • 12
1
vote
0 answers

IllegalAccessError when trying to instantiate Log4j2 Logger in Java Fn Project

I have a Java class that is the entry point for my Fn Function (within an Fn Application) using FDK 1.0.95 that instantiates a Log4j2 Logger. public class MyClass { private final Logger LOG = LogManager.getLogger(this.getClass()); } I have a…
ealagic
  • 51
  • 1
1
vote
3 answers

Fn project is missing http operations (CRUD)

I have spent my afternoon getting very excited about the container-native serverless platform 'fn project' - http://fnproject.io/. I love the idea of the FaaS model but have no intention of locking myself into a particular cloud vendor for most of…
apostrophedottilde
  • 867
  • 13
  • 36
1
vote
1 answer

permissions warnings for fn start from https://github.com/fnproject/fn

Are these permission warnings fixable when starting Fn github project locally on my Docker in Docker (dind) instance following the directions on the github project: https://github.com/fnproject/fn ? I installed via brew on a mac. $ fn start …
pchung
  • 21
  • 2
1
vote
2 answers

How do you update the fn project server from the CLI?

Docker caches the latest version on my machine, I know I can do docker pull on it, but is there a way to do it via the command line tool?
Travis Reeder
  • 38,611
  • 12
  • 87
  • 87
0
votes
0 answers

Verifying Mockito mocks in FnProject JUnit tests

Testing FnProject Functions illustrates how to use the FnTestingRule to simulate function invocations and interrogate their results. That part is working as expected. However, I am also trying to use Mockito to verify that the function called a…
Judge Mental
  • 5,209
  • 17
  • 22
0
votes
0 answers

Function to encode image with dlib with c#

I'm trying to make a function with c# with fn project, I did this job with an Dockerized linux containerized API with Visual Studio 2022 and it works great. The problem is, when I try to make the same with fn on a VM with Centos 9 it doesn't work…
Yury Euceda
  • 570
  • 4
  • 15
1
2 3