Dev focused conversations, questions and discussions around PRs, etc should happen here.
mellistibco on readme-updates
mellistibco on master
Readme updates (#570) * Update… (compare)
mellistibco on readme-updates
Update README.md (compare)
mellistibco on readme-updates
Update README.md (compare)
hi @lixingwang,
i'm facing this error while piping the data to the handler,
Error invoking action : unsupported trigger data: &{{"apiVersion":"v2","id":"c4a72616-07e1-4300-a928-1bf764814c79","deviceName":"Random-Integer-Device","profileName":"Random-Integer-Device","sourceName":"Int16","origin":1627408154564184234,"readings":[{"id":"15f855a8-bd4b-4155-9e68-0e76a48deb6e","origin":1627408154564184234,"deviceName":"Random-Integer-Device","resourceName":"Int16","profileName":"Random-Integer-Device","valueType":"Int16","binaryValue":null,"mediaType":"","value":"23047"}]}}
I have tried to pass the data as a string then as a struct pointer but still facing the same error.
vagrant@vagrant:~/tryflogo/tryingCliInstallation$ flogo create newapp
Creating Flogo App: newapp
Installing: github.com/project-flogo/core@latest
Error creating project: open pkg/mod/github.com/project-flogo/core@v1.4.0/examples/engine/main.go: no such file or directory
vagrant@vagrant:~/tryflogo/tryingCliInstallation$
debug: [01:14:16.092] Installation of 'github.com/afarooq8/trigger' failed in 'undefined' step.
debug: [01:14:16.093] Starting engine recovery.
debug: [01:14:16.093] Resource cleaning: removing the backup folder.
info: [01:16:43.848] [log] Install : 'github.com/afarooqi8/trigger'
debug: [01:16:43.849] Backing up 'src' to 'backupsrc'.
debug: [01:16:43.854] Started installing 'github.com/afarooqi8/trigger' to the engine.
info: [01:16:43.855] Exec command: flogo install github.com/afarooqi8/trigger in /flogo-web/local/engines/flogo-web
info: [01:16:43.860] run command: flogo install github.com/afarooqi8/trigger
engine:install:contribution: 1279911.114ms
debug: [01:38:03.777] Building engine.
info: [01:38:03.782] [log] Build flogo: "flogo build " compileOpts:
info: [01:38:03.789] run command: flogo build
warn: [01:38:48.910] command exited with code 1: flogo build
error: [01:38:48.920] [error] Encountered error while installing the 'github.com/afarooqi8/trigger' to the engine:
error: [01:38:48.921] Error building project: # github.com/edgexfoundry/go-mod-core-contracts/v2/errors
/go/pkg/mod/github.com/edgexfoundry/go-mod-core-contracts/v2@v2.0.0/errors/types.go:79:6: undefined: errors.As
note: module requires Go 1.16
# github.com/pebbe/zmq4
/go/pkg/mod/github.com/pebbe/zmq4@v1.2.7/reactor.go:10:4: undefined: State
/go/pkg/mod/github.com/pebbe/zmq4@v1.2.7/reactor.go:11:9: undefined: State
note: module requires Go 1.16
# go.uber.org/multierr
/go/pkg/mod/go.uber.org/multierr@v1.7.0/error.go:249:6: undefined: errors.As
/go/pkg/mod/go.uber.org/multierr@v1.7.0/error.go:262:6: undefined: errors.Is
note: module requires Go 1.14
docker build -t flogo/flogo-web -f tools/docker/Dockerfile .
-> that's failing for me when I upgrade the golang version to 1.16 (in the Dockerfile), something in the out of the box activities/triggers seems to be incompatible. I'm seeing:
#13 2036.0 [release:build-engines ] [configure-engines] Error building project: /go/pkg/mod/github.com/project-flogo/contrib/activity/xml2json@v0.10.0/activity.go:7:2: missing go.sum entry for module providing package github.com/basgys/goxml2json (imported by github.com/project-flogo/contrib/activity/xml2json); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/contrib/activity/xml2json@v0.10.0
#13 2036.0 [release:build-engines ] [configure-engines] /go/pkg/mod/github.com/project-flogo/contrib/trigger/timer@v0.10.0/timer.go:8:2: missing go.sum entry for module providing package github.com/carlescere/scheduler (imported by github.com/project-flogo/contrib/trigger/timer); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/contrib/trigger/timer@v0.10.0
#13 2036.0 [release:build-engines ] [configure-engines] /go/pkg/mod/github.com/project-flogo/contrib/activity/jsexec@v0.10.0/activity.go:7:2: missing go.sum entry for module providing package github.com/dop251/goja (imported by github.com/project-flogo/contrib/activity/jsexec); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/contrib/activity/jsexec@v0.10.0
#13 2036.0 [release:build-engines ] [configure-engines] /go/pkg/mod/github.com/project-flogo/stream/service/telemetry@v0.0.0-20200124014152-d2d7c82a602d/service.go:11:2: missing go.sum entry for module providing package github.com/gorilla/websocket (imported by github.com/project-flogo/stream/service/telemetry); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/stream/service/telemetry@v0.0.0-20200124014152-d2d7c82a602d
#13 2036.0 [release:build-engines ] [configure-engines] /go/pkg/mod/github.com/project-flogo/contrib/function/json@v0.10.0/path.go:4:2: missing go.sum entry for module providing package github.com/oliveagle/jsonpath (imported by github.com/project-flogo/contrib/function/json); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/contrib/function/json@v0.10.0
#13 2036.0 [release:build-engines ] [configure-engines] /go/pkg/mod/github.com/project-flogo/contrib/function/datetime@v0.10.0/formatdate.go:9:2: missing go.sum entry for module providing package github.com/tkuchiki/parsetime (imported by github.com/project-flogo/contrib/function/datetime); to add:
#13 2036.0 [release:build-engines ] [configure-engines] go get github.com/project-flogo/contrib/function/datetime@v0.10.0
I am getting below error while trying to build aws lambda. Followed the steps from https://tibcosoftware.github.io/flogo/faas/how-to/
Tried few things. I am using same example given on https://tibcosoftware.github.io/flogo/faas/how-to/
D:\Flogo\app\myapp2>flogo build -e --shim aws_lambda_trigger --verbose
Embedding configuration in application...
Creating shim support files...
Preparing shim...
Using build.go to build shim......
Running build script for the Lambda trigger
Cleaning up previous executables
Building a new handler file
go: main: package github.com/aws/aws-lambda-go/lambda imported from implicitly required module; to add missing requirements, run:
go get github.com/aws/aws-lambda-go/lambda@v1.10.0
exit status 1Zipping the new handler file
Failed to compress file: open D:\Flogo\app\myapp2\src\handler: The system cannot find the file specified.Cleaning up shim support files...
sure I can approach it that way.
My main reason contributing to the repository is because same components are available by default on TIBCO Cloud Integration.
So as a user I wanted to contribute to a whole Marketplace available in TCI
Should I create PR on https://github.com/TIBCOSoftware/tci-awesome/blob/master/docs/data/items.toml ?
hi, I think I’ll go for now with option 2.
And introduce activity into my TCI org for now for the team to use.
For option 2 (OSS), I followed process from tci-awsome
and created issue: TIBCOSoftware/tci-awesome#14
If needed I can create PR with this addition?