8000 Result of `Run Function` and provided curl command of that function run differ · Issue #51 · fnproject/ui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Result of Run Function and provided curl command of that function run differ #51
Open
@mklaehn

Description

@mklaehn

Concidering the following function deployed to a Fn Server.

package com.example.fn;
public class PojoFunction {
    public Object greet(String name) {
        if (name == null || name.isEmpty()) {
            name = "World";
        }
        return new Greeting(name);
    }
    public static class Greeting {
        public final String name;
        public Greeting(String name) {
            this.name = name;
        }
    }
}

Executing the Run Function Action with Payload MyName does not produce the same result as executing the provided curl command.

Result of Fn UI function execution

{
  "name": "\"MyName\""
}

Result of curl function execution

{
  "name": "MyName"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0