Getting PolyglotException when set cookies is null
See original GitHub issueGetting below logs for the issues when login response headers for set-cookie
is Set-Cookie: ; Secure; HttpOnly
,
Example:
11:55:21.546 [main] DEBUG com.intuit.karate - response time in milliseconds: 241
2 < 200
2 < Date: Tue, 19 Apr 2022 06:25:21 GMT
2 < Content-Type: application/json
2 < Content-Length: 3409
2 < Connection: keep-alive
2 < Set-Cookie: ; Secure; HttpOnly
2 < X-XSS-Protection: 1
The following failure logs were observed with above response headers for login apis,
org.graalvm.polyglot.PolyglotException
- com.intuit.karate.http.Response.getCookies(Response.java:125)
- com.intuit.karate.core.ScenarioEngine.httpInvokeOnce(ScenarioEngine.java:631)
- com.intuit.karate.core.ScenarioEngine.httpInvoke(ScenarioEngine.java:554)
Issue Analytics
- State:
- Created a year ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
Karate js file: org.graalvm.polyglot.PolyglotException
PolyglotException : Cannot read the array length because "src" is null ... Now I'm getting the following exception while running the tests:
Read more >1.0 release thread · Issue #1373 · karatelabs/karate - GitHub
Cannot seem to find any Cookie nor Set-Cookie on both the request and responses though.
Read more >Karate | Test Automation Made Simple.
Karate is the only open-source tool to combine API test-automation, mocks, performance-testing and even UI automation into a single, unified framework.
Read more >Use Browser Cookies with 'shiny'
If this is NULL. (default) the cookie will only be sent to the host of the page where this cookie was set (not...
Read more >SyntaxError: identifier starts immediately after numeric literal
The names of variables, called identifiers, conform to certain rules, which your code must adhere to! A JavaScript identifier must start with a ......
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 FreeTop 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
Top GitHub Comments
@bipin-k sorry, I’ve already committed the change. the next time please provide a test case
Sure, Thankyou @ptrthomas ! 👍