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

Merleawe commented 3 weeks ago

I have the same problem. Keeps failing to log me in despite the information being correct too.

At this point, if I restart my deck or reload Emudeck....it constantly deletes my login information. Making me manually retype it everytime. I've done it like 50 times by now and im just gonna give up for the time being.

ynhhoJ commented 3 weeks ago

@topakopa , @Merleawe , what do you see when enter into https://example.com website?

Because this error happens when plugin can't connect to the website and get response from it, so maybe problem is on your end.

Also, Emuchievements should try to connect to the internet every 1 second.

Merleawe commented 3 weeks ago

@topakopa , @Merleawe , what do you see when enter into https://example.com website?

Because this error happens when plugin can't connect to the website and get response from it, so maybe problem is on your end.

Also, Emuchievements should try to connect to the internet every 1 second.


@ynhhoJ

I see(on my PC, not steamdeck):

**Example Domain This domain is for use in illustrative examples in documents. You may use this domain in literature without prior coordination or asking for permission.

More information...**


I don't think its my internet. My steamdeck DID have legitimate connection problems days ago(The day I first got emuachievements working; actually)..., but it was extremely obvious, was the first time it had happened and its not happened again. Emudeck is STILL able to connect to retroachievements just fine- so I know the internet is working. The problem is that Emuachievements itself just refuses outright to connect on steamdeck gaming mode. For reference; i'm using an LCD Steamdeck 512g.

Whats curious is... It WILL successfully login on desktop mode... But when you switch to gaming mode and do the same thing; it won't work. And desktop mode when changed to big picture doesn't seem to save the login information to gaming mode either.

It seems like an issue with Gaming mode itself. On google search/reddit posts of other people talking about Emudeck: the internet/connection/login error on gaming mode seems to be a common error.

It constantly shows(As seen in the OP's Imgur screenshot) when trying to refresh the application in gaming mode.:

Error: Error: No internet

When trying to login, it will just say login failed. And every time I restart my deck; it will wipe all my login information and force me to manually retype it in gaming mode.

I have restarted my modem. I've reinstalled everything but Emudeck itself. I've turned my deck on and off. Tried big picture mode. Tried desktop mode. Everything. I got it to work somehow around 3 days ago(after a lot of restarting and workarounds)- but it randomly deleted my login credentials and stopped working a day or two later. Now it hasn't worked since.

I wish at least there was a way to actually put my login information in the application folder so I don't need to retype it every time. People online have mentioned something like 'Settings.Json' but I found no such file in Emuachievements folders when I went digging.

Emuchievements was REALLY great when it was working though! (I do wish it showed achievement progress and had a way for people to post under the community tab and write achievement guides though.. then it would be perfect ^^;; )

For now though; I just don't think theres much I can do to get it working anymore.

ynhhoJ commented 3 weeks ago

@Merleawe , if you want and can help me to find why this error happens, you can try to switch to my forks of this plugin. You can find it here: https://github.com/ynhhoJ/Emuchievements

I created a release: https://github.com/ynhhoJ/Emuchievements/releases/tag/2.1.4-0 which add log messages into the method what return No Internet error message.

We should check why this happens.

To switch to my fork, you should to:

  1. Open Decky settings
  2. Scroll down to Others
  3. Enable Development mode
  4. In the left side of screen will appear Developer category / tab (?)... Press on that
  5. Press on Install Plugin from URL and introduce path to the my .zip folder: https://github.com/ynhhoJ/Emuchievements/releases/download/2.1.4-0/Emuchievements-2.1.4-0.zip
  6. Then Install
  7. If everything is done correctly, you should what Emuchievements changed it's version to 2.1.4-0 image
  8. To be sure that 100% scripts are changed, you can try to restart your Steam Deck.
  9. After restart inter into Developer category / tab (?) from Decky and click on CEF Console.
    You will see something like that:
    image
  10. You can clear all logs by pressing on icon; image
  11. Enable filters only by errors:
    image
  12. Trigger again Decky plugin.
  13. Access Plugins tab / menu (?)
  14. Press on three dots near Emuchievements plugin
  15. Access Restart (first option)
    image
  16. You can close now Decky and return to the CEF Console, where you can see your log's:
    image
  17. You should search for logs what contains [checkOnlineStatus] Error:
ynhhoJ commented 3 weeks ago

On my Steam Deck OLED i have only [checkOnlineStatus] OK messages.

All requests should have status: 200 (Success)

image

P.S: For a faster communication, you can find me in the official discord server of this plugin: https://discord.com/invite/EtNhJrfdGh

Merleawe commented 3 weeks ago

On my Steam Deck OLED i have only [checkOnlineStatus] OK messages.

All requests should have status: 200 (Success)

image

P.S: For a faster communication, you can find me in the official discord server of this plugin: https://discord.com/invite/EtNhJrfdGh

@ynhhoJ

Couldn't find out how to get a direct SS. But this is what it returned to me, so I hope a phone screenshot is okay(I did not restart by the way; I didn't want to type out my login for the 60th time... But I'll try after restarting if I need to.)

IMG_4463 IMG_4464

Merleawe commented 3 weeks ago

@ynhhoJ

Updated post with SS. Hope it helps- there are certainly errors there.

ynhhoJ commented 3 weeks ago

@Merleawe , do you have any VPN enabled or maybe some configuration on your network??

image

For me it's an unusual error ;(

Merleawe commented 3 weeks ago

@Merleawe , do you have any VPN enabled or maybe some configuration on your network??

image

For me it's an unusual error ;(

@ynhhoJ

No VPN's. It's Bell Aliant Wi-fi directly on steamdeck.

Nothing but Emudeck, Emulated games, Decky and Emuchievements is downloaded to my deck. This issue is happening to more than one person; its definitely some sort of error occurring between steamdeck gaming mode and Decky/Emuachievements.

Again, Emudeck's login for Retroachievements works fine. Emuchievements acutally DOES successfully login on desktop mode. It's only Emuchievements gaming mode that doesn't work. So I feel like something is either going on with Decky or Emuechievements.

ynhhoJ commented 3 weeks ago

@Merleawe , what decky version do you use?

I''m not sure, but problem can be caused by this method: https://github.com/SteamDeckHomebrew/decky-loader/blob/main/frontend/src/plugin-loader.tsx#L582 or by the fact, that Emuchievements sends a lot of requests which can cause an error somewhere...

Merleawe commented 3 weeks ago

@Merleawe , what decky version do you use?

I''m not sure, but problem can be caused by this method: https://github.com/SteamDeckHomebrew/decky-loader/blob/main/frontend/src/plugin-loader.tsx#L582 or by the fact, that Emuchievements sends a lot of requests which can cause an error somewhere...

Hahaha... I'm not really sure. I'm an animator by trade and not much of a coder. I know enough about computers to implement fixes; but I can't troubleshoot the code myself.

Again, Emuchievements appears to work in desktop mode. But not Gaming mode. So the error appears to be concentrated only in gaming mode.

Merleawe commented 3 weeks ago

@ynhhoJ

My apologies. I didn't answer the question.

I use Decky v2.12.3

ynhhoJ commented 3 weeks ago

If I had the opportunity to replicate the bug, I might be able to get a better understanding of the problem.... :(

Can you upgrade to the latest version?

Maybe this can help, but i'm not sure. I'm worried you can have multiple plugins which can break after this upgrade

Right now, i'm on v3.0.0-pre10

Merleawe commented 3 weeks ago

@ynhhoJ

Nope. Didn't work.

There is something going on. IDK what. But https://github.com/EmuDeck/Emuchievements/issues/32 seems to be the same issue as well. I can't really give you an answer, because IDK whats wrong.

Merleawe commented 3 weeks ago

I AM getting this constantly repeating error though IMG_4465

When I clear it, it makes a new one every second. Yes. 1 second.

ynhhoJ commented 3 weeks ago

@Merleawe , what is inside Object?

Merleawe commented 3 weeks ago

@ynhhoJ IMG_4466 IMG_4467

ynhhoJ commented 3 weeks ago

Very strange... maybe you can try to reboot?

Merleawe commented 3 weeks ago

Very strange... maybe you can try to reboot?

This was after a hard reboot. Haha. IDK. I feel like whatever it is- it's the reason for the login error. And as long as I fail to login- it will continue to error.

Merleawe commented 3 weeks ago

The difference between you and me is that you have an OLED Deck. Maybe there needs to be a patch made specifically for LCD(First Gen) Decks. IDK why that would be the case. But unless the other affected individuals have an LCD deck too- I can't be sure. Maybe Emuchievements doesn't recognize the LCD Deck as hardware.

ynhhoJ commented 3 weeks ago

The difference between you and me is that you have an OLED Deck. Maybe there needs to be a patch made specifically for LCD Decks. IDK.

I'm not sure if that can be a problem, because there is some error in code. To be clear, I use Decky - v3.0.0-pre10 I completely deleted Emuchievements from plugins list and installed again from .zip file.

About your message here: https://github.com/EmuDeck/Emuchievements/issues/32#issuecomment-2313703352

I tried to do what BRIUSTUDIOS said; but I can find nothing called settings.json in that folder.

/home/deck/homebrew - there are stored all plugins data. settings.json is stored in /home/deck/homebrew/settings/Emuchievements

For testing purposes, you can:

  1. Verify if you use last pre-release of Decky to match version as main
  2. Remove a.k.a uninstall Emuchievements from plugins list
  3. Enter in desktop mode and try to delete everything what you see associated with Emuchievements (check in logs, services, settings folder from homebrew folder)
  4. Try to install Emuchievements from my fork: https://github.com/ynhhoJ/Emuchievements/releases/download/2.1.4-0/Emuchievements-2.1.4-0.zip

P.S: Before removing settings.json you can copy it, if you need too...

ynhhoJ commented 3 weeks ago

When I tested some things on my Steam Deck, I mentioned that Decky or Steam Deck sometimes can remember old code and does not use the new one. In this case I use restart.

Merleawe commented 3 weeks ago

Ugggghhhhhh @w@ IDK;;;

I have to work rn; but I'll try just reinstalling everything again in about 4-6ish hours.

Merleawe commented 3 weeks ago

@ynhhoJ

But still. That is only really accounting for my individual error. The same thing is going wrong for multiple people for this to be happening to multiple people. We are encountering this error from a clean install. It could be because its remembering old code; but it didn't log in correctly the very first time I installed it.

So I don't think what I had installed is the issue. You may need to consult a second party to reevaluate the code. IDK.

ynhhoJ commented 3 weeks ago

So I don't think what I had installed is the issue. You may need to consult a second party to reevaluate the code. IDK.

Possible you are right. Like I said, if I can reproduce that on my machine, will be more easier to me to understand where is the problem or to do deeper debugging.

In the last error messages is clear, what Python back-end of application didn't run or for some reasons, the Emuchievements code can not connect to the Back-End, and this type of error I never saw

Merleawe commented 3 weeks ago

So I don't think what I had installed is the issue. You may need to consult a second party to reevaluate the code. IDK.

Possible you are right. Like I said, if I can reproduce that on my machine, will be more easier to me to understand where is the problem or to do deeper debugging.

In the last error messages is clear, what Python back-end of application didn't run or for some reasons, the Emuchievements code can not connect to the Back-End, and this type of error I never saw

Is it possible that Ducky doesn't install the files unto the correct domain? I think mine were in the downloads folder last I checked. I can take a look in a few hours and see if changing the domain can fix it.

ynhhoJ commented 3 weeks ago

image

Just saw same error messages, but my Achievements are loaded correctly

I did an Refresh (second button)

Image - open me ![image](https://github.com/user-attachments/assets/88fa1e3e-fb92-4057-a285-0edda55b9d32)

And got:

Image - open me ![image](https://github.com/user-attachments/assets/29533ac6-4b36-41fc-bcb9-583d694371e2)
Merleawe commented 3 weeks ago

@ynhhoJ meonly

ynhhoJ commented 3 weeks ago

@Merleawe , well, when you will be free, try to log in into RetroAchievements through Emuchievements and press Refresh to load achievements.

Clear cache button will actualize your game list and shouldn't remove your credentials

P.S: Sometime Emuchievements doesn't open settings.json file in correct order and it's think that you are log out. To resolve this, you can try to Restart entire plugin from Decky.

I used to do that on development and helped me to save some sanity....

Merleawe commented 3 weeks ago

@Merleawe , well, when you will be free, try to log in into RetroAchievements through Emuchievements and press Refresh to load achievements.

Clear cache button will actualize your game list and shouldn't remove your credentials

Went to Decky > Emuichievements > ... > Reload

The Emuichievements >Refresh> Clear Cache

Settings > (input login) Login

Error: Login Failed

Failed :P

ynhhoJ commented 3 weeks ago

@Merleawe ,

Failed :P

Same error, No Internet?

Merleawe commented 3 weeks ago

@Merleawe ,

Failed :P

Same error, No Internet?

Interestingly enough; I didn't get the

Error: Error: No Internet

When reloading. I'm shutting down my deck to try again.

Merleawe commented 3 weeks ago

Okay i restarted and got

Error: Error: No internet

when refreshing again. So I doubt its going to work. But i'll try logging in again.

ynhhoJ commented 3 weeks ago

when refreshing again. So I doubt its going to work. But i'll try logging in again.

What do you see in CEF Console after logging in?

Merleawe commented 3 weeks ago

@ynhhoJ

Login failed.

I'm getting the notification 'You aren't logged into Emuichevements!' all day today. So its definitely connected. But it's not logging in.

ynhhoJ commented 3 weeks ago

I'm getting the notification 'You aren't logged into Emuichevements!' all day today. So its definitely connected. But it's not logging in.

Are you sure that token is correct? I had a case when O (letter O) was confused with 0 (number 0)

Merleawe commented 3 weeks ago

@ynhhoJ IMG_4468

Merleawe commented 3 weeks ago

What about the 'Multiple different versions of MobX active' and 'Failed to resource: The server responded with a status of 404 (not found)' errors?

Those are still present and on some of the first screen shots I uploaded.

Merleawe commented 3 weeks ago

I'm getting the notification 'You aren't logged into Emuichevements!' all day today. So its definitely connected. But it's not logging in.

Are you sure that token is correct? I had a case when O (letter O) was confused with 0 (number 0)

Not sure what you mean by that. My login info doesn't have any O's or 0's in them.

ynhhoJ commented 3 weeks ago

What about the 'Multiple different versios of MobX active' and 'Failed to resource: The server responded with a status of 404 (not found) errors?

Those are still present and on some of the first screen shots I uploaded.

From what i see, Multiple different versios of MobX active -- this error is not very important. For me it's doing nothing...

About Failed to find an active context - i don't know why it happens :(

Not sure what you mean by that. My login info doesn't have any O's or 0's in them.

Hm, okay. It's very strange that if you entered correct username and api key you still get this error.

Merleawe commented 3 weeks ago

IMG_4469 404 error has repeated

ynhhoJ commented 3 weeks ago

404 seems to be an error from Steam Deck itself

Merleawe commented 3 weeks ago

404 seems to be an error from Steam Deck itself

What folder is Emuichievements supposed to be in?

ynhhoJ commented 3 weeks ago

What folder is Emuichievements supposed to be in?

/home/deck/homebrew - there are stored information about all plugins /home/deck/homebrew/plugins/Emuchievements - source code of Emuchievements /home/deck/homebrew/settings/Emuchievements - here is located settings.json

Merleawe commented 3 weeks ago

I went into setttings and my API key was incomplete there. I fixed it there. Still didnt work. I deleted the settings entirely, reinstalled Emuchievements entirely, tried again.. Still didn't log in.

It says in Settings.Json "Config_Version" : "1.0.0"

other than my log in details....

"cache" (is empty) "ids" (is empty)

"hidden" : False


This is all I can find. I doubt I can do much more.

ynhhoJ commented 3 weeks ago

Still didn't log in

Event after you manually edited settings.json file?

"cache" (is empty) "ids" (is empty)

There should be game id's after syncing with RetroAchievements.

Merleawe commented 3 weeks ago

Still didn't log in

Event after you manually edited settings.json file?

"cache" (is empty) "ids" (is empty)

There should be game id's after syncing with RetroAchievements.

Well, its not going to synch if you can't log in. And nope. Even with identical username and API; still didn't work.

ynhhoJ commented 3 weeks ago

You can try to manually send an API request to: https://retroachievements.org/API/API_GetAchievementOfTheWeek.php?z=222&y=111

Using some solutions like: https://reqbin.com/

where: 222 - username from retroachievements 111 - your web api key

image

Output should be below: image


Because Emuchievements use this API to detect if user correctly entered credentials.

Merleawe commented 3 weeks ago

image

I don't really understand it.

I'm looking at my API from my profile. It's definitely 100% correct.

Merleawe commented 3 weeks ago

Remember: Retroachievements on Emudeck still logs in just fine.

I don't think its a matter of my API or username.