Skip to content

Generate Code, ie: cURL; creates invalid request with ISO offset datetime #7428

Description

@citDennis

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

3.1.3

Operating System

Kubuntu / Ubuntu 24.04.4 LTS

Describe the bug

When I export a working query containing an ISO offset date time using generate code, the plus sign of the offset is replaced by a space. Its not immediately obvious due to URL encoding but it causes the generated query to fail.
This happens regardless of which code generation I use, though I didn't thoroughly test every single option.

eg: (url)&sinceVersionDate=2026-03-10T00:00:00+01:00
result contains: &sinceVersionDate=2026-03-10T00%3A00%3A00%2001%3A00 (note the %20 toward the end!)

.bru file to reproduce the bug

Any query containing the above date format will trigger it

Screenshots/Live demo link

curl --request GET
--url 'https://REDACTED.nl/api/TransactionService/getTransactions?transKindList=sales_order&sinceVersionDate=2026-03-10T00%3A00%3A00%2001%3A00'
--header 'upid: REDACTED'
--header 'x-api-key: REDACTED'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions