Comments (11)
Yeah that's what I just tried
I created an issue: #77
With the namespace added java functions finally work 🎉.
Thank you very much for your effort!
from faas-flow.
hi @tim-hellhake,
For sync chain
the call pattern is
flow.SyncNode().Apply("func1").Apply("func2")
In this above case func1
output gets piped to func2
Can you refer which example are you following ?
from faas-flow.
Another example sync chain with image filter here
and also check if the gateway in env is right
gateway: "gateway:8080"
from faas-flow.
I have a simple java handler which prepends the current date:
public IResponse Handle(IRequest req) {
Response res = new Response();
res.setBody(new Date() + ": " + req.getBody());
return res;
}
I tried to apply the function twice:
flow.SyncNode().Apply("date").Apply("date")
If i call the flow with the body foo
i get Tue Jul 23 18:15:22 GMT 2019:
as result.
I would expect something like Tue Jul 23 18:15:22 GMT 2019: Tue Jul 23 18:15:22 GMT 2019: foo
.
from faas-flow.
The java handler works as expected:
foo
-> Tue Jul 23 18:17:04 GMT 2019: foo
from faas-flow.
I setup a dummy implementation to check the issue
https://github.com/s8sg/java-test-flow
It seems the issue is only with java8
function, where python
, node
works fine
I'll take a look in details soon. Great if you can help to debug
from faas-flow.
@chennqqi can you check this. Function with java8
as template doesn't receive the data from faas-flow. Although this function works fine: https://github.com/s8sg/java-test-flow/blob/master/test-java/handler.go
We had some issue with connection being open, but that doesn't fix it either.
from faas-flow.
@tim-hellhake The issue was quite silly . The method POST
was not being set. The PR fixes it. I'll merge and close the issue. Please give it another try, it should work.
from faas-flow.
I updated my flow function with:
faas template pull --overwrite https://github.com/s8sg/faas-flow
faas-cli up -f flow.yml
Now I get a 500 when I call the function.
I looked into the flow functions logs and found this:
2019/07/27 14:28:12 stderr: 2019/07/27 14:28:12 http: panic serving 127.0.0.1:39422: [Request `bku5uv64pd7q5nmpgj40`] Failed, Node(0_1_sync), Function(java-append-date), error: function execution failed, Post http://gateway:8080/function/java-append-date: dial tcp: lookup gateway on
2019/07/27 14:28:12 stderr: 10.100.0.10:53: no such host
I assume this is caused by #67?
from faas-flow.
If you using Kubernets can you please try with ‘gateway.openfaas:8080’. Ideally the call to OpenFaaS function must be made via gateway.
from faas-flow.
We expect user to set the gateway based on the deployment environment. This is documented in README.
https://github.com/s8sg/faas-flow/blob/master/README.md#add-configuration
from faas-flow.
Related Issues (20)
- add ability to access state info for current dag node and data store from operation HOT 2
- add CutDag(id string) and Reverse() sdk.Dag funcs HOT 6
- How do you think about dapr as data store?
- are you thinking of visual based programming? HOT 2
- Allow ability to create aggregators as a function
- Change documentation and configuration to Kubernets default
- Faas-flow Infra should deploy the whole Faas-flow stack HOT 1
- Keep the default flow configuration in the Dockerfile of Template HOT 1
- Make Consul and Minio as default StateStore and DataStore
- build failed HOT 2
- Failed to init flow HOT 1
- Multiple-node Dag's execution fails HOT 3
- Flow with more than one nodes HOT 7
- Flow execution time measurement
- Parallel execution speed up HOT 4
- faas build the demo case yml failed
- Function output pipe into next function HOT 2
- Cannot use context.Set in faas-flow pipeline. HOT 1
- Fass flow has an inncorrect flow name HOT 2
- Docker images problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from faas-flow.