ge-ku / AutoJoin-for-SteamGifts

Automatically enters giveaways from Steamgifts.com
https://chrome.google.com/webstore/detail/autojoin-for-steamgifts/bchhlccjhoedhhegglilngpbnldfcidc
GNU General Public License v2.0
105 stars 22 forks source link

Auto join on background not working again :( #69

Closed TioHell closed 3 months ago

TioHell commented 3 months ago

Hi, after the 1.10.2 update the auto join on background worked for a few hours, now its not working again and some new errors are showing on chrome 2024-08-24_182934

ge-ku commented 3 months ago

Hi, first error on your screenshot should be fixed in the new update (1.10.3), are other errors new or from before?

ge-ku commented 3 months ago

Oh, I think I figured it out, it can throw error if there is no permissions to access steamcommunity.com but some option which uses it is enabled. Will try to fix it and disable these options if we don't have needed permissions granted.

ge-ku commented 3 months ago

Version 1.10.4 should fix those errors, let me know if it works once update arrives.

jdvb123 commented 3 months ago

any prediction for the release date of the new update? There is some weeks that it doesn't work in background for me

ge-ku commented 3 months ago

any prediction for the release date of the new update? There is some weeks that it doesn't work in background for me

Latest version is in Chrome store and should work right now, if it doesn't:

Include your settings and check if there are any errors when you go to extension page (Extensions > Manage Extensions > Details or paste chrome://extensions/?id=bchhlccjhoedhhegglilngpbnldfcidc into address bar). Enable Developer mode in top right corner.

You'll then see: Inspect views service worker html/offscreen.html

Click on both of these and if you see errors, send them.

jdvb123 commented 3 months ago

image image

TioHell commented 3 months ago

Sorry about the huge delay, had to make sure everything was working, and it is, thanks for all the help :)

ge-ku commented 3 months ago

image image

I couldn't figure out when this error may appear, new version (1.10.5) was uploaded that added additional log messages in this case, once update arrives and you get this error again, it should also print more lines, please share them (you can open a new issue).

jdvb123 commented 3 months ago

unfortunately it isn't working for me yet

ge-ku commented 3 months ago

unfortunately it isn't working for me yet

Can you please check for errors again? If it's the same error, it should print more information now, which will help me find what causes it.

jdvb123 commented 3 months ago

It doesn't have any error tho, i don't know what's happening but it doesn't work in background anymore, i've reinstalled the extension and nothing

I have this message but don't know if this is something to care about: Sem título

jdvb123 commented 3 months ago

everything's fine with my configs too Sem título

jdvb123 commented 3 months ago

image found this

ge-ku commented 3 months ago

"inactive" is fine when it's waiting for the next cycle. Those warnings should not matter but I'll fix them. And what about Console tab? Is there anything, even if not errors? "Alarm fired" messages at least should be there every hour.

jdvb123 commented 3 months ago

There's absolutely nothing in the "console" page, not a single word

jdvb123 commented 3 months ago

image

ge-ku commented 3 months ago

@jdvb123 just uploaded new version (1.10.6) that should fix all those warning messages. But I also tried installing current version in Edge with your settings and while it gives these same warnings there, it also works fine, there's an "Alarm fired" message in console and everything else as in Chrome. So I don't think it'll fix your issue, I'm not sure what's causing it.

Is it possible for you to try again in Chrome, just to see if it works there?

jdvb123 commented 3 months ago

Tested in Chrome, didn't work aswell (only firefox works) Another detail (i don't think that's important but idk) is that after clicking the autojoin button it works, but in Edge/Chrome there's no "Good Luck" message, in firefox it works like before and it shows the message.. strange, i'm using this tool since 2018 and it's the first time this happens, it always worked fine in background, but now there's always 400 points and no giveaways joined, unless i click the button :/

jdvb123 commented 3 months ago

Is there any way to make the older updates available to download? They were working fine for me

ge-ku commented 3 months ago

Is there any way to make the older updates available to download? They were working fine for me

This whole update was because of Chrome dropping manifest v2 support soon, it will stop working at some point, extension was updated to use manifest v3. Firefox doesn't plan to drop manifest v2 support, so I didn't update it there for now.

You can try to download version 1.9.6 from https://github.com/ge-ku/AutoJoin-for-SteamGifts/tree/57392e13da4643eec8f0af208abff4c380bca9e7 (click Code => Download ZIP), unpack it and install as unpacked extension.

This way you can use it until manifest v2 is disabled. But I'd like to find the cause of this issue and make new version work. Can you try opening Steamgifts website and see if there's anything in the console (Ctrl+Shift+J) related to extension?

jdvb123 commented 3 months ago

Is there any way to make the older updates available to download? They were working fine for me

This whole update was because of Chrome dropping manifest v2 support soon, it will stop working at some point, extension was updated to use manifest v3. Firefox doesn't plan to drop manifest v2 support, so I didn't update it there for now.

You can try to download version 1.9.6 from https://github.com/ge-ku/AutoJoin-for-SteamGifts/tree/57392e13da4643eec8f0af208abff4c380bca9e7 (click Code => Download ZIP), unpack it and install as unpacked extension.

This way you can use it until manifest v2 is disabled. But I'd like to find the cause of this issue and make new version work. Can you try opening Steamgifts website and see if there's anything in the console (Ctrl+Shift+J) related to extension?

image image

jdvb123 commented 3 months ago

After reloading and cleaning cache: image

ge-ku commented 3 months ago

These errors are not coming from extension (they will likely be there if you disable it completely), messages about caching and hiding are from extension, but they seem fine. I still can't understand why it doesn't work in the background or at least output an error that we could trace, sorry.

jdvb123 commented 3 months ago

So strange, other people are with the same problems or there's something wrong here? I even installed Chrome from zero and tested the extention there with the same configs for a whole day and nothing :/

ge-ku commented 3 months ago

Not that I'm aware of, there were some errors initially (like the start of this issue) but those were much easier to track down. I uploaded new version (1.10.7) where I tried creating recurring alarms in a different way and with a bit of additional logging, once you get it please:

see if it prints anything out this time, if it prints "alarm set", wait for 30 seconds and see if more messages appear.

jdvb123 commented 3 months ago

Installed the old version and it works again. I've installed the new version now and apparently it's fixed! image

ge-ku commented 3 months ago

Great! I still don't understand why it didn’t work previously, but I’m glad that it’s fixed now.