-
Notifications
You must be signed in to change notification settings - Fork 67
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
fn invoke with java fdk helloworld gives 502 error #392
Comments
This is because the Java FDK is expecting FN_PATH and FN_REQUEST_URL to be set
|
Invoke has changed the expected call contract and the Java FDK has not been updated to reflect that change. |
Is this an easy fix? |
I tried the same thing and I get a 404 "Route not found" error using either call or invoke. Curl works fine. |
More information after working on the node.js tutorial. Node.js is also giving me a 404 "Route not found" with
Now call works if you specify the content type. So |
Mike - Routes will be deprecated. |
Note that this issue originates on the server-side (not on the CLI), and it affects all FDKs. A fix is available on fnproject/fn#1192 |
I tried running a HelloWorld java using triggers and fn invoke... and I get a 502 in invoke.
fn init --runtime java --trigger http sac-java-t-fn
FN_REGISTRY=demouser fn -v deploy --app db-app --local --no-bump
curl http://localhost:8080/t/db-app/sac-java-t-fn-trigger
Curl works but I get a 502 error for Java helloworld fn invoke below:
fn invoke db-app sac-java-t-fn
{"message":"container exit code 2"}
Fn: Error calling function: status 502
See 'fn --help' for more information. Client version: 0.4.150
The text was updated successfully, but these errors were encountered: