Skip to content

x-hasura- headers are not properly send in session_variables in event triggers with special characters, such as [æ, ø, å] #10734

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

Open
Hsoratsa opened this issue May 26, 2025 · 1 comment
Labels
k/bug Something isn't working

Comments

@Hsoratsa
Copy link

Hsoratsa commented May 26, 2025

Version Information

Server Version:
CLI Version (for CLI related issue):
v2.48.1

Environment

OSS

What is the current behaviour?

Headers are not properly send in event triggers. From jwt token its working correctly.
This is the example of how it was send in session_variables
"session_variables": {
"x-hasura-bruker-navn": "Test��",
"x-hasura-role": "admin"
},

What is the expected behaviour?

it should send correctly as:
"session_variables": {
"x-hasura-bruker-navn": "Teståå",
"x-hasura-role": "admin"
},

How to reproduce the issue?

  1. Add table, add event trigger on that table
  2. Set needed header in hasura as:Image
  3. Try to mutate any data in table.
  4. Check event trigger, session_variables are broken

Screenshots or Screencast

Image Image

Please provide any traces or logs that could help here.

Any possible solutions/workarounds you're aware of?

Keywords

event_trigger, session_variables, special, characters, headers, x-hasura

@Hsoratsa Hsoratsa added the k/bug Something isn't working label May 26, 2025
@seanparkross
Copy link
Contributor

@Hsoratsa Thanks for this. I have reported to the team.

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

2 participants