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

Header key variables not being translated after update to 1.39 #4052

Open
2 tasks done
HachiJuu opened this issue Feb 18, 2025 · 4 comments
Open
2 tasks done

Header key variables not being translated after update to 1.39 #4052

HachiJuu opened this issue Feb 18, 2025 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@HachiJuu
Copy link

HachiJuu commented Feb 18, 2025

I have checked the following:

  • I use the newest version of bruno.
  • I've searched existing issues and found nothing related to my issue.

Describe the bug

I have a variable on the header key, used to be called header name, and when sending the request, I get the following error: Error invoking remote method 'send-http-request': TypeError [ERR_INVALID_HTTP_TOKEN]: Header name must be a valid HTTP token ["{{keyheader}}"]

If I replace the variable with the actual value, it works. This was working on the previous version, 1.38.1

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image

@HachiJuu HachiJuu added the bug Something isn't working label Feb 18, 2025
@sreelakshmi-bruno sreelakshmi-bruno self-assigned this Feb 18, 2025
@sreelakshmi-bruno
Copy link
Collaborator

Hi, thanks for reporting, I wasn't able to reproduce the issue as you can see below. Can you check if the issue persists with other requests as well? Thanks!

Image

@HachiJuu
Copy link
Author

HachiJuu commented Feb 18, 2025

@sreelakshmi-bruno from that screenshot, it doesn't seem to be the latest version. In the latest version, the header name is now called key

@sreelakshmi-bruno
Copy link
Collaborator

Ah, I added the wrong screenshot. Please check this one. Thanks!

Image

@HachiJuu
Copy link
Author

HachiJuu commented Feb 19, 2025

This happens with every request I try.
Without variable

Image

With variable

Image

I only changed the key for the variable that has the same value. I tried almost all types of variable as well, global, environment, collection and same result

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants