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.

Getting PolyglotException when set cookies is null

See original GitHub issue

Getting 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:closed
  • Created a year ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ptrthomascommented, Apr 19, 2022

@bipin-k sorry, I’ve already committed the change. the next time please provide a test case

0reactions
bipin-kcommented, Apr 19, 2022

Sure, Thankyou @ptrthomas ! 👍

Read more comments on GitHub >

github_iconTop 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 >

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