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

Actions "Headers" section error with {{ $body.input?.xxx }} #10187

Open
indigostar-kr opened this issue Apr 4, 2024 · 0 comments
Open

Actions "Headers" section error with {{ $body.input?.xxx }} #10187

indigostar-kr opened this issue Apr 4, 2024 · 0 comments
Labels
k/bug Something isn't working

Comments

@indigostar-kr
Copy link

Version Information

Server Version: 2.38.1
CLI Version (for CLI related issue):

Environment

OSS

What is the current behaviour?

I'm experiencing an error when using {{ $body.input?.xxx }} in the "Headers" section of Hasura Actions.

What is the expected behaviour?

{{ $body.input?.xxx }} should be evaluated and the result should be included in the request headers.

How to reproduce the issue?

  1. Goto Actions
  2. New Action Or Modify
  3. Try to use {{ $body.input?.xxx }} in the "Headers" section.
  4. Goto API
  5. Call API

Screenshots or Screencast

스크린샷 2024-04-04 오전 11 00 06

스크린샷 2024-04-04 오전 10 59 29

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

I was able to work around this issue by adding request_transform.request_headers.add_headers to the metadata.

setting showRequestHeaders to true in the frontend source code.
Link

Keywords

  1. OpenAPI
  2. Headers
  3. add_headers
  4. showRequestHeaders
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant