Epic-Asset-Manager: EULA fails to validate

Describe the bug

I was hoping to try the engine download, yet I keep being faced with EULA Accepted? Please sign the EULA to continue. However, I have already accepted the EULA. After digging around I found out that the EULA fails to load immediately when I open the app.

I’m using Flatpak on Pop_OS! 22.04.

To Reproduce Steps to reproduce the behavior:

  1. Open the App using the terminal (flatpak run io.github.achetagames.epic_asset_manager), after configuration.
  2. Look at terminal messages
  3. Notice <epic_asset_manager::tools::epic_web> - [ERROR] - Failed to parse EULA json: error decoding response body: invalid type: null, expected struct HasAccountAccepted at line 1 column 743
  4. Go to Engines > Install Engine.
  5. See EULA Accepted? Please sign the EULA to continue message.

OR

  1. Open the App using the terminal (flatpak run io.github.achetagames.epic_asset_manager), after configuration.
  2. Go to Engines > Install Engine.
  3. See EULA Accepted? Please sign the EULA to continue message.
  4. Click Revalidate
  5. “Nothing” happens
  6. Look at terminal messages
  7. Notice <epic_asset_manager::tools::epic_web> - [ERROR] - Failed to parse EULA json: error decoding response body: invalid type: null, expected struct HasAccountAccepted at line 1 column 743

Expected behavior

  1. Open the App after configuration.
  2. Go to Engines > Install Engine.
  3. See EULA Accepted message.
  4. Install UE5

Screenshots

image

Desktop (please complete the following information):

  • OS: Pop_OS! 22.04
  • Browser: Firefox 103

Additional context

I believe the issue is that the graph call is returning null instead of returning the expected values. My guess is that there were changes in the graph callback API or because my account is “old” it makes use of outdated calls.

The terminal logs are the following:

$ flatpak run io.github.achetagames.epic_asset_manager 
<epic_asset_manager> - [DEBUG] - /app/share/epic_asset_manager
<epic_asset_manager> - [DEBUG] - 
<epic_asset_manager> - [DEBUG] - 3.6.1
<epic_asset_manager::application> - [INFO] - Epic Asset Manager (io.github.achetagames.epic_asset_manager)
<epic_asset_manager::application> - [INFO] - Version: 3.6.1 ()
<epic_asset_manager::application> - [INFO] - Datadir: /app/share/epic_asset_manager
<epic_asset_manager::application::imp> - [DEBUG] - GtkApplication<EpicAssetManager>::startup
<epic_asset_manager::tools::epic_web> - [ERROR] - Failed to parse EULA json: error decoding response body: invalid type: null, expected struct HasAccountAccepted at line 1 column 743

The code seems to end up here:

https://github.com/AchetaGames/Epic-Asset-Manager/blob/470217d80c799d3e5da19b1d4e63a9867c18783b/src/tools/epic_web.rs#L144

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (13 by maintainers)

Commits related to this issue

Most upvoted comments

Well it just hit me that 8645b4947bbc4c0092a8b7236df169d1 is not your account ID but mine … would explain why it works for me… 😄

Ok this is on me 😄… will have a fix in a minute…