question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Postman converter does not support requests without bodies

See original GitHub issue

Example Postman v2.1 export:

{
  "info": {
    "_postman_id": "c58ce879-6c89-4219-8f9c-14de849c5301",
    "name": "sample",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
  },
  "item": [
    {
      "name": "http://localhost:8080/v1/hello",
      "request": {
        "method": "GET",
        "header": [
          {
            "key": "accept",
            "value": "*/*"
          },
          {
            "key": "accept-encoding",
            "value": "gzip, deflate"
          },
          {
            "key": "connection",
            "value": "keep-alive"
          },
          {
            "key": "host",
            "value": "localhost:8080"
          },
          {
            "key": "user-agent",
            "value": "HTTPie/1.0.3"
          }
        ],
        "url": {
          "raw": "http://localhost:8080/v1/hello",
          "protocol": "http",
          "host": [
            "localhost"
          ],
          "port": "8080",
          "path": [
            "v1",
            "hello"
          ]
        }
      },
      "response": []
    }
  ],
  "protocolProfileBehavior": {}
}

An NPE is thrown here: https://github.com/intuit/karate/blob/master/karate-core/src/main/java/com/intuit/karate/formats/postman/PostmanUtils.java#L101

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

0reactions
Celeocommented, Dec 20, 2019

I’m using the import code and wrapping it into a runnable jar. I didn’t know you had the cli option pattern; will check it out.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postman converter does not support requests without bodies
@kirksl I was wondering if a "Postman import" can be added to https://github.com/kirksl/karate-runner - a drag-n-drop experience would be ...
Read more >
Spring post method "Required request body is missing"
My issue was that, when I was making requests from Postman, the "Content-Length" header was unchecked, so service was not considering the ...
Read more >
'form-data' works for POST request, but not 'raw' - Help
I am making an api call that takes three parameters in the request: client_id, authorization_id, and query_params, a list of optional ...
Read more >
Converting OpenAPI Specs to Postman Collections
Schemas: The OpenAPI spec describes schemas for specific objects that are reused throughout the API (in the request/response body and headers, ...
Read more >
Making SOAP Requests with Postman
Set the request method to POST . Under the Body tab, set the body type to raw and select XML from the dropdown....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found