bruno icon indicating copy to clipboard operation
bruno copied to clipboard

Variables in Websocket messages are not resolved

Open victoriastrobel opened this issue 2 months ago • 5 comments

I have checked the following:

  • [x] I have searched existing issues and found nothing related to my issue.

This bug is:

  • [ ] making Bruno unusable for me
  • [x] slowing me down but I'm able to continue working
  • [ ] annoying
  • [ ] this feature was working in a previous version but is broken in the current release.

Bruno version

2.13.0

Operating System

macOS 15.7.1 (24G231)

Describe the bug

It is really nice that Bruno now supports WebSockets 🚀 However, there is a problem when using variables in the WebSocket Messages. When using a variable {{variableName}} in the message, it looks like they can be resolved, but then in the actual message that is send the variable is not resolved, and instead the reference value {{variableName}} is still used. Would be great, if it is possible to actually use variables in the WebSocket messages

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Message:

Image

Actual Message that is send:

Image

victoriastrobel avatar Oct 20 '25 13:10 victoriastrobel

I can confirm this bug on version v2.13.2. This bug also exists for the "Headers" and "Auth" tab.

Image Image

While the timeline shows: Image (The timeline seems to not be the problem as placing the actual value instead of a variable fixed my authentication problems)

lhind-linus avatar Oct 20 '25 17:10 lhind-linus

Hey, thanks for the report

The headers and auth not resolving the variable is definitely a bug though I'm sure that support for message interpolation was not added, this will be done in the next few releases

sid-bruno avatar Oct 24 '25 05:10 sid-bruno

Leaving this open since the PR only partially addresses the issues mentioned here.

Update: Moved @lhind-linus's issue to it's own issue https://github.com/usebruno/bruno/issues/5879

sid-bruno avatar Oct 24 '25 09:10 sid-bruno

I would like to add on to this that variables are also not being resolved in the URL field. This was checked in v2.14.2

doprel avatar Nov 13 '25 10:11 doprel

I would like to add on to this that variables are also not being resolved in the URL field. This was checked in v2.14.2

I've moved it as a new issue so we can track it better. https://github.com/usebruno/bruno/issues/6089

To help me out though, can you add in more details about the kind of variables that aren't being interpolated ? Scripts, runtime, etc

sid-bruno avatar Nov 13 '25 11:11 sid-bruno