Skip to content
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

[BUG] Docker compose is failing since ruuter fails to parse GET/.guard #729

Open
IgorKrupenja opened this issue Dec 2, 2024 · 1 comment
Assignees
Labels
bug Something isn't working v2.0.2

Comments

@IgorKrupenja
Copy link
Collaborator

Bug description:

Steps:

  1. Check out the latest commit (870dafb0623647112d65c9611bc6d0100d2af740) from v2.0.2 branch.
  2. Run docker compose up -d in repo root.

ruuter container will fail with the following:

2024-12-02 13:22:58 Caused by: ee.buerokratt.ruuter.helper.exception.InvalidDslException: Encountered error, when loading DSL: /DSL/GET/.guard. while parsing a flow sequence
2024-12-02 13:22:58  in 'reader', line 12, column 10:
2024-12-02 13:22:58         url: [#TRAINING_RESQL]/use-nonce
2024-12-02 13:22:58              ^
2024-12-02 13:22:58 expected ',' or ']', but got :
2024-12-02 13:22:58  in 'reader', line 14, column 20:
2024-12-02 13:22:58           updated_nonce: ${incoming.headers['x-ruuter-n ... 
2024-12-02 13:22:58                        ^
2024-12-02 13:22:58 
2024-12-02 13:22:58  at [Source: (File); line: 14, column: 21]

The reason is that since this change in the DSL/Ruuter.private/GET/.guard file, the YAML is invalid. Quotation marks are missing, correct would be e.g.:

verify_header_nonce:
  call: http.post
  args:
    url: http://host.docker.internal:8082/use-nonce
    url: "[#TRAINING_RESQL]/use-nonce"
    body:
      updated_nonce: ${incoming.headers['x-ruuter-nonce']}
  result: nonce_response

Expected behavior:

Docker compose should work.

@IgorKrupenja IgorKrupenja added the bug Something isn't working label Dec 2, 2024
@varmoh
Copy link
Collaborator

varmoh commented Dec 2, 2024

Fixed the issue.
Commit -
870dafb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working v2.0.2
Projects
Status: Done
Development

No branches or pull requests

2 participants