3

A day back my scripts were working just fine,but all of a sudden I started getting this error when I launched the scripts today.Can someone help me with this ?

[main] ERROR com.intuit.karate - driver config / start failed: io.netty.handler.codec.http.websocketx.WebSocketClientHandshakeException: Invalid handshake response getStatus: 403 Forbidden, options: {type=chrome, target=null} java.lang.RuntimeException: io.netty.handler.codec.http.websocketx.WebSocketClientHandshakeException: Invalid handshake response getStatus: 403 Forbidden

Additionally I cam across this similar question,but it didn't gave a clear direction. karate webSockets : getting invalid handshake response getStatus: 403 Forbidden

  • the only way to get a clear direction is help others simulate the problem as mentioned in the comments on the question you linked – Peter Thomas Mar 10 '23 at 14:44
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Mar 10 '23 at 19:27
  • This is the exact issue which i was facing.The solution provide here did help me resolve it. https://github.com/karatelabs/karate/issues/2275 – Akshay Shetty Mar 11 '23 at 10:48

1 Answers1

3

Try adding this in the driver settings addOptions: ["--remote-allow-origins=*"]

For example:

  • configure driver = { type: 'chrome', addOptions: ["--remote-allow-origins=*"] }