EmuDeck / Emuchievements

Plugin for viewing RetroAchievements progress. Part of the EmuDeck Project
GNU General Public License v3.0
31 stars 6 forks source link

Error: No Internet #37

Open topakopa opened 1 month ago

topakopa commented 1 month ago

I don't know why, but the plugin says that there is no Internet https://imgur.com/2hf47iM

ynhhoJ commented 3 weeks ago

image @Merleawe , use API key above this text...

ynhhoJ commented 3 weeks ago

Remember: Retroachievements on Emudeck still logs in just fine.

Because Retroachievements on Emudeck uses Connect Key and you can get this key only after authorization.

Emuchievements uses Web API Key

P.S: I found a bug on latest version (from what i know, you use version from Emudeck store, maybe you are not affected with this one), even if you introduce correct credentials and is returned sucess response, Emuchievements show message what login attempt was failed.

I will fix it tomorrow.

Merleawe commented 3 weeks ago

{ "Achievement": { "ID": 442338, "Title": "The Wild Force Has Been Contained!", "Description": "[Story Mode] Clear World 5 on any difficulty and beat the game!", "Points": 5, "TrueRatio": 5, "Type": null, "Author": "Mendil", "BadgeName": "500651", "BadgeURL": "/Badge/500651.png", "DateCreated": "2024-06-26 16:48:30", "DateModified": "2024-07-15 22:31:55" }, "Console": { "ID": 16,

ynhhoJ commented 3 weeks ago

@Merleawe , seems that you got correct Web API Token :)

Merleawe commented 3 weeks ago

@Merleawe , seems that you got correct Web API Token :)

Yes, I mean, its the one I've been using.... It did work before, after all. And the correct copy-paste one has always been in settings. But I did find out that retroachievements writes 1 and l both with the '1' character, which would've been part of the problem with the one on gaming mode I wrote by hand.

Even changing that though; still doesn't log in. It doesn't load anything. And restarting my deck gets rid of my login information which forces me to put it back in manually. So i'm still at square one with the Error: Internet error regardless.

You may be right though. I do use the store version and it might be an issue with the store one.

Merleawe commented 3 weeks ago

I restarted for the 15th time today and suddenly this time its login success. Lmao.

Now it's loading things. I don't know how it suddenly fixed itself.. But if its anything like last time... It will randomly lose my login info at some point @w@ I hope not.

@ynhhoJ Thanks for the help! I don't think mistaking 1 for l was the issue... Since other people have the same login error I did(such as OP) but for me right now its working for now.

ynhhoJ commented 3 weeks ago

@Merleawe , tho, on my fork was added experimental things, like custom achievements list for games what are not detected by default by Emuchievements.

Those changes was pushed to main repository: https://github.com/EmuDeck/Emuchievements/pull/40

but idk when it will appear in decky store.

Merleawe commented 3 weeks ago

@ynhhoJ

So restarting my steam deck still wipes the login info. Lmao. So everytime I restart my deck.. I have to re-login and the application has to reload the achievements again. Thats probably how I got into this situation in the first place. @w@

It would be nice to get a fix for your login info to stay there upon restarting or turning off the deck. It always gives me the no internet error on restart.

ynhhoJ commented 3 weeks ago

@Merleawe , try to restart plugin, maybe this will read file correctly and you will be logged in

https://github.com/EmuDeck/Emuchievements/issues/37#issuecomment-2315859170 - i wrote about it here

Merleawe commented 3 weeks ago

@Merleawe , try to restart plugin, maybe this will read file correctly and you will be logged in

I reloaded it, but it doesn't pull my login info from the settings. Unfortunately. I don't know why it doesn't remember it.

Merleawe commented 3 weeks ago

Yeah. Now its logging in successfully but still getting Error: No internet.

My current theory is that the achievements will refuse to load if I press 'refresh' first before logging in.

So maybe you HAVE to log in before pressing 'refresh' or it will refuse to load anything. That could be where "Error: No internet" comes from.


So its the same issue as OP still lmao. I had it working.... But restarting the deck to see if the log-in info stayed... Messed it up again. UgggHHHH.

Merleawe commented 3 weeks ago

Nope. I did a fresh restart, logged in successfully, and then pressed refresh.

Still Error: No Internet

image

Merleawe commented 3 weeks ago

So at the moment, it just works sometimes. I guess.

ynhhoJ commented 3 weeks ago

I can't reproduce No Internet error, so idk how to resolve that :(

Merleawe commented 3 weeks ago

I can't reproduce No Internet error, so idk how to resolve that :(

So I guess we are just stuck at square one for now lol. I'm out of ideas other than to restart the deck and re-input login info until it works.

ynhhoJ commented 3 weeks ago

@Merleawe , I completely nuked Decky and tried to install release version of Decky, which deleted all my saves and settings.


In my case, Decky won't appear in menu from release version. Correctly works only pre-release branch.

After fresh install of Emuchievements - it worked without problems for me :(

Merleawe commented 3 weeks ago

@ynhhoJ

Huh. So you think its stemming from the release version of Decky? I guess theres nothing to do other than to install pre-release decky then. I'll try it.

Merleawe commented 3 weeks ago

As far as downloading Pre-release Decky, and using the normal store release version of Emuechievement; I still get the same Error: No internet error as @topakopa . It still deletes my login info.

As far as normal users go, I guess the store version is lacking. I'll have to give downloading it on desktop a try.

But at this point; I don't think the average user can do anything about this.

ynhhoJ commented 3 weeks ago

So you think its stemming from the release version of Decky?

To be honest, i don't know... I'm a little afraid of experimenting with other people's devices, because this update (switching decky version) might remove your settings from plugins, remove files or you'll encounter other issues.

I don't know it will help, I'm using Beta Channel for Steam OS.

But at this point; I don't think the average user can do anything about this.

Yes, I agree

KP2048 commented 3 weeks ago

Stable store version is old. use the testing store version

KP2048 commented 3 weeks ago

Or one of the releases of his fork, both should work fine

Merleawe commented 3 weeks ago

Or one of the releases of his fork, both should work fine

The only way I am able to get the store release working- is by following these steps(And this is also my reddit thread on the issue):

https://www.reddit.com/r/SteamDeck/comments/1f09hwn/comment/lkkc0qr/?context=3

This also worked for another commenter today... So it's a workaround solution. It was also what I did the very first time I got it working.... However; it requires turning the internet off and a restart to get it working. WHY it works when you do that... I have no freakin' clue.


As for what you said though... I understand that the store version may be wonky. But thats the point of this bug thread. To report that it isn't working and to hopefully find the problem and fix it.

Also, I'm pretty sure I still get the 'Error: No internet' even when I tried ynhhoj's dev build. It didn't fix my issue so I ended up uninstalling and going back to square one. I have it working again now because I followed the steps I found in the reddit thread I posted... But I expect eventually it will lose my login info again; and then i'll have to go through the process again.

For the sanity of the average user, app usability and for the sake of user experience... It's probably ideal that a fix is found for the store version. Or at the very least, identifying where the "Error: Error: No Internet" and the 'failure to save the login info' issues are coming from. And whether or not its on Emuechievements side... Or Decky's side.

Either way; it would be ideal to have the common release version working ^^;;

KP2048 commented 3 weeks ago

I already said. Use the testing store version not the stable store. It can be done entirely within game mode.

KP2048 commented 3 weeks ago

Or one of the releases of his fork, both should work fine

The only way I am able to get the store release working- is by following these steps(And this is also my reddit thread on the issue):

https://www.reddit.com/r/SteamDeck/comments/1f09hwn/comment/lkkc0qr/?context=3

This also worked for another commenter today... So it's a workaround solution. It was also what I did the very first time I got it working.... However; it requires turning the internet off and a restart to get it working. WHY it works when you do that... I have no freakin' clue.


As for what you said though... I understand that the store version may be wonky. But thats the point of this bug thread. To report that it isn't working and to hopefully find the problem and fix it.

Also, I'm pretty sure I still get the 'Error: No internet' even when I tried ynhhoj's dev build. It didn't fix my issue so I ended up uninstalling and going back to square one. I have it working again now because I followed the steps I found in the reddit thread I posted... But I expect eventually it will lose my login info again; and then i'll have to go through the process again.

For the sanity of the average user, app usability and for the sake of user experience... It's probably ideal that a fix is found for the store version. Or at the very least, identifying where the "Error: Error: No Internet" and the 'failure to save the login info' issues are coming from. And whether or not its on Emuechievements side... Or Decky's side.

Either way; it would be ideal to have the common release version working ^^;;

I agree it's a problem. I need to replicate first obviously, and my deck's wifi is shot. My only option is Ethernet via the dock, which is fine it's just clunky.

Merleawe commented 3 weeks ago

I already said. Use the testing store version not the stable store. It can be done entirely within game mode.

I’m not sure where it is though. When I got into the testing store; there are only 26 apps there and Emuechievement isn’t one of them. I’ve definitely heard mention of one being there- but it doesn’t show up in the store for me. Only the normal storefront gives me the option.

KP2048 commented 3 weeks ago

Anyone with this issue, does https://example.com resolve with your DNS? I ping it to check for Internet

Merleawe commented 2 weeks ago

Might be best to ask people on reddit or something to run checks for you. Since thats where I've seen the most people talk about this application and this issue.

For me, Emuchievements runs with the workaround where you turn off the internet. However... it will only ever show the achievements retroachievements has logged upon startup. If you earn achievements during gameplay.. Emuchievements will fail to recognize them as being achieved. In order to update the list... You need to restart your deck. But upon restart.... it APPEARS to lose all of your login info. However, if you do not touch it- emuechievements will eventually load back in and the login info reappears. Or at least; that has been my experience. But the achievements still do not update in real time.

But if you try to fix it before it loads back in(because you don't think its working, as its deleted your login info) you will have to go through this process over again.

KP2048 commented 2 weeks ago

Try to load that in your deck's browser. If it loads the example page then idk wtf is going on lol. If it errors or something then it's definitely DNS. Try setting your Wi-Fi's DNS to 1.1.1.1