Skip to content

Code generation fails when path params values are dynamic (runtime variables) #6247

@lucademichele-igt

Description

@lucademichele-igt

I have checked the following:

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

This bug is:

  • making Bruno unusable for me
  • 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.14.2

Operating System

Windows 11

Describe the bug

Define a POST like
https://www.url.com/:path-param/something
Define a Pre Request script like
bru.setVar("varXXX", "1000000");
Define the path param as:
path-param={{varXXX}}
Click on "Generate Code" to obtain the message:
Invalid URL: https://www.url.com/{{varXXX}}/something

.bru file to reproduce the bug

No response

Screenshots/Live demo link

Image

JIRA

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions