Postman converter does not support requests without bodies
See original GitHub issueExample 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:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Celeo ah that figures. the cli code in
develop
is here: https://github.com/intuit/karate/blob/develop/karate-core/src/main/java/com/intuit/karate/cli/Main.javaand the cli options are declared here: https://github.com/intuit/karate/blob/develop/karate-core/src/main/java/com/intuit/karate/RunnerOptions.java
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.