Comments (1)
Simple way to reproduce:
foo.blobl
:
map foo {
root = this.foo | throw("Kaboom!")
}
bar.blobl
:
map bar {
root = this.bar | throw("Kaboom!")
}
benthos.yaml
:
input:
generate:
count: 2
mapping: root.map = if count("test") == 1 { "foo" } else { "bar" }
interval: 0s
processors:
- mapping: |
import "./foo.blobl"
import "./bar.blobl"
root = this.apply(this.map)
> benthos -c benthos.yaml
INFO Running main config from specified file @service=benthos path=benthos.yaml
INFO Listening for HTTP requests at: http://0.0.0.0:4195 @service=benthos
INFO Launching a benthos instance, use CTRL+C to close @service=benthos
ERRO failed assignment (line 3): failed assignment (line 2): Kaboom! @service=benthos label="" path=root.input.processors.0
{"map":"foo"}
ERRO failed assignment (line 3): failed assignment (line 2): Kaboom! @service=benthos label="" path=root.input.processors.0
{"map":"bar"}
Note that the 2 error logs are identical. I think it would help to have apply()
inject the map name as an annotation in them.
from benthos.
Related Issues (20)
- Allow setting benthos cli flags from environment variables
- Bloblang minification / alternative to newlines for separating statements
- schema_registry_encode double encodes path params HOT 1
- [Feature request] Telegram output HOT 1
- [Feature Request] Support inserting UUID from string in cassandra HOT 5
- NATS User Password Support HOT 2
- Workflow Processor - DAG Execution Ordering HOT 13
- Task resource isolation In streams model
- Add Splunk_hec label to metrics output HOT 1
- output component fallback not work HOT 1
- [Feature Request] Trim whitespaces from columns in CSV scanner/input HOT 1
- aws_s3: Scanner and backing reader not closed on non `io.EOF` error
- 4.28.0 should really be 5.0.0 HOT 3
- Document change in licensing HOT 2
- Inconsistent behavior with Javascript processing HOT 1
- JavaScript processor unable to handle asynchronous code execution HOT 1
- Iceberg support HOT 1
- Esto serΓ‘ facil
- MwM
- Exclude enterprise licensed plugins from the all package HOT 2
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 benthos.