Skip to content

"POST" requests actually issuing GET #5476

@mcoombe

Description

@mcoombe

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.10.0

Operating System

Ubuntu 22.04.5

Describe the bug

I'm in the process of building a Bruno collection for demonstrating a number of proprietary REST APIs, and have run into issues where some (but not all) of the POST requests defined in the collection are actually issuing GET requests when executed.

Specifically, in these particular cases:

  • The Bruno UI indicates that the request is a POST on the request tab, and in the collection tree.
  • Manual examination of the corresponding .bru file confirms the request is defined as a POST.
  • When executing the request, the method is recorded as POST in the network log.
  • Despite this, the server logs indicate a GET request was received, and the response is as would be expected for a GET request to the same API path.

Of about 40 requests defined in the collection, only two exhibit this behaviour (both POST requests). That's sufficient though that the collection is not suitable for the intended purpose, unfortunately.

.bru file to reproduce the bug

meta {
  name: Create data pool
  type: http
  seq: 6
}

post {
  url: {{ALETHEIA_API_URL}}/datapools
  body: json
  auth: inherit
}

body:json {
  {
    "id": "{{TEST_DATA_POOL_ID}}",
    "organisationId": "{{SANDBOX_ID}}",
    "name": "My Test Data Pool",
    "description": "A test data pool in my sandbox"
  }
}

settings {
  encodeUrl: true
}

Screenshots/Live demo link

Image

UI elements describing the request as a POST highlighted in red. Despite this, the response displayed here contains a list of resources, as would be expected in response to a GET response to the same URL path. Server logs confirm the request was indeed a GET, not POST.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriage-pendingTriage Pending

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions