epicgames-freegames-node icon indicating copy to clipboard operation
epicgames-freegames-node copied to clipboard

Probably not correctly analyzing hCaptcha's accessibility cookie

Open k10876 opened this issue 3 years ago • 3 comments

Describe the bug

The log showed a strange response when requesting the hCaptcha accessibility cookie. If the response doesn't actually contain the cookie and I'm making some false interpretations of the response, please close the issue.

Screenshots or Logs

[2022-06-24 21:16:34.701 +0800] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies status: 401 errorBody: { "csrf_token": "REDACTED**" }

Additional context

I don't actually know whether the csrf_token field contains the cookie. If it doesn't and I'm just overthinking, please inform me of the problem, and I'll close the issue.

k10876 avatar Jun 24 '22 13:06 k10876

This is a known issue. See the acknowledgement from the dev about this on the main page and the bug report for this issue.

Thanks for responding, but the response is different from what is normally seen when hCaptcha rejects the request. For further investigation, I'd paste the original log down below:


[2022-06-24 21:16:34.701 +0800] DEBUG: Error from hCaptcha get_cookie request, continuing without hCaptcha accessibility cookies
    status: 401
    errorBody: {
      "csrf_token": "IjljOTZlNTNkODA5MDg2NGIwOTlkN2JjODcxYmQ1NGI0MGY3NjFjYmYi.YrW5Mg.yFNZigrgNyMLS2YCC_K1EresJtA"
    }

There is a 401 code over here, but I can't tell what the csrf_token is.

k10876 avatar Jun 25 '22 00:06 k10876

I see what you mean. I was only focused on the error 401 part. I wonder the difference stems from you having a different log level than the other poster. Not sure what that token is. Are you using a valid URL in the config that you obtained yourself through hCaptcha?

FlyGuyGo avatar Jun 25 '22 02:06 FlyGuyGo