Closed Antivash closed 3 months ago
can you try accessing this website? https://www.pcgamesn.com/zenless-zone-zero/codes
it says that you're forbidden from accessing the page
I can on all browsers I've tried it with, but they all require me to do a human verification thing
oh it's just their cloudflare bot detection, this doesn't really an issue since there's another 3 website still working fine and still looking for codes.
you can either go here https://github.com/torikushiii/hoyolab-auto/blob/main/crons/code-redeem/resolvers/zenless/defaults/pcgames.js and change this from log
to debug
to
if (res.statusCode !== 200) {
app.Logger.debug("ZenlessZoneZero:PCGamesN", { // changed to debug
message: "Failed to fetch data from PCGamesN.",
statusCode: res.statusCode
});
return [];
}
this will silently drops the error message.
there’s another method you could try by go to the website again, verify that you’re a human, and then replace your user-agent in the config file. However, you mentioned that it still doesn’t work.
Ahh, I see. I thought I might have configured it wrong. I'll go ahead and make the edit to drop the error. Thank you for helping.
I'm not entirely sure what is going on, but I appear to have an issue with the code redeem option. I am seeing a 403 error with it. Attempted to look through the past issues or documentation, I can't seem to find an explanation to what is going on with it beyond the error in terminal.
Issue persists on both Windows and Linux. Originally I wondered if it was the UserAgent option at the top, but after replacing it with the below, the issue continues.
Config with sensitive info removed. Screenshot One (Run on windows) Screenshot Two (Run on Linux)