-
Notifications
You must be signed in to change notification settings - Fork 216
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
Arguments of type 'object' lead to internal server on invokes. #1307
Comments
I suspect that the input arguments are always serialized as a seprate string, instead of preserving the structure: firefly/internal/blockchain/fabric/fabric.go Line 820 in 4df24f3
|
I think that This is the equivalent of: package main
import (
"encoding/json"
"fmt"
)
func main() {
var inner = make(map[string]string)
inner["inner"] = "data"
var output, _ = json.Marshal(inner)
var outer = make(map[string]string)
outer["outer"] = string(output)
var output2, _ = json.Marshal(outer)
fmt.Println(string(output2))
} Which results in:
While what should happen is:
Which results in:
Because Resty is called using an unmarshalled object, it is marshalled again. I think this line is not required: firefly/internal/blockchain/fabric/fabric.go Line 712 in 4df24f3
|
Given a firefly schema
When called with:
Firefly returns status code
400 Bad Request
:Firefly shows these log lines:
Fabconnect shows these log lines:
It seems that firefly passes the nested object as a string, instead of a nested of an object.
Firefly Version: 1.2.0
Fabconnect v0.9.17
The text was updated successfully, but these errors were encountered: