You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[][] ▶ Starting cats-11.0.1-SNAPSHOT, build time 2024-02-28T18:40:31Z UTC, platform Linux-6.5.0-21-generic-amd64
[][] ⚙ Headers file: /cats/header.yml
[][***] ‼ Something went wrong while running CATS: java.lang.IllegalArgumentException: Cannot deserialize value of type java.util.LinkedHashMap<java.lang.Object,java.lang.Object> from Array value (token JsonToken.START_ARRAY)
at [Source: UNKNOWN; byte offset: #UNKNOWN]
This exception will come for any FileArguments like: --header, --refData --urlParam
** Steps To Reproduce**
Steps to reproduce the behaviour:
Run cats command for any specification with --headers <headers.yaml> file. Content of headers.yaml file could be as below:
all:
- X-API-Key:abc123
The program will crash with Exception
Expected behaviour
The headers.yaml file should be read properly and those headers should be sent in the request.
The text was updated successfully, but these errors were encountered:
Hi @ganeshnikam18. Headers file syntax implies that headers are sub-elements of paths and all, not array values like in your example. This is why it crashes. It's probably a good idea to change a bit the message to suggest that it's an issue with the syntax.
Describe the bug
If we give header.yaml file as a input on the cats command line then we get below exception:
[][] ▶ Starting cats-11.0.1-SNAPSHOT, build time 2024-02-28T18:40:31Z UTC, platform Linux-6.5.0-21-generic-amd64
[][] ⚙ Headers file: /cats/header.yml
[][***] ‼ Something went wrong while running CATS: java.lang.IllegalArgumentException: Cannot deserialize value of type
java.util.LinkedHashMap<java.lang.Object,java.lang.Object>
from Array value (tokenJsonToken.START_ARRAY
)at [Source: UNKNOWN; byte offset: #UNKNOWN]
This exception will come for any FileArguments like: --header, --refData --urlParam
** Steps To Reproduce**
Steps to reproduce the behaviour:
Expected behaviour
The headers.yaml file should be read properly and those headers should be sent in the request.
The text was updated successfully, but these errors were encountered: