Cookie help

how to fix this error
[Executing block Keycheck] KeyNotFoundException: The given key ‘sessionId’ was not present in the dictionary.

BLOCK:Keycheck
banIfNoMatch = False
KEYCHAIN BAN OR
STRINGKEY @data.COOKIES[“sessionId”] DoesNotContain “”
ENDBLOCK

BLOCK:Parse
LABEL:Cookie
input = @data.COOKIES[“sessionId”]
MODE:LR
=> VAR @Cookie
ENDBLOCK

You’re getting a KeyError because your check to see whether the cookie is present is already trying to access the key

data.COOKIES is a dictionary, on that you need to check if it contains your sessionId as a key

BLOCK:Keycheck
  banIfNoMatch = False
  KEYCHAIN BAN OR
    DICTKEY @data.COOKIES HasKey "sessionId"
ENDBLOCK

key is value
20240822_182854