Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

benthos bloblang required: expected comma or closing bracket #2099

Closed
helloworld6688 opened this issue Sep 6, 2023 · 1 comment
Closed

Comments

@helloworld6688
Copy link

i met this problem in my code, but i don't know how to fix it ,so i hope someone who can help me, best wish for you

level=error msg="Config lint error" @service=benthos lint="/benthos.yaml(158,15) line 1 char 1: failed to parse import './mapping/business.blobl'\n |\n1 | import "./mapping/business.blobl"\n | ^---\n\n./mapping/business.blobl: line 18 char 22: required: expected comma or closing bracket\n |\n22 | root.business = "hardware" |

this is benthos config, and my yaml config is ok

      - label: hardware
        mapping: |
          import "./mapping/business.blobl"

          root = this
          root.full_data = {}
          root.full_data.info = this.full_data.apply("business")

  business.blobl: |-
    import "common.blobl"
    map business {
      root.source = "hard"
      root.business = "hardware"
    }
@Jeffail
Copy link
Collaborator

Jeffail commented Sep 6, 2023

Hey @helloworld6688, can you provide a short config example that I can run locally? Otherwise it's hard to tell with all the omitted data. For example, what's contained within common.blobl? Converting to discussion as per #2026

@redpanda-data redpanda-data locked and limited conversation to collaborators Sep 6, 2023
@Jeffail Jeffail converted this issue into discussion #2101 Sep 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants