Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: MissingRequiredKeysException: Required keys are missing: created App Version: 1.5.7 Server Version: 2.2.0a3 #437

Open
bocklucas opened this issue Oct 17, 2023 · 28 comments
Assignees
Labels
bug Something isn't working

Comments

@bocklucas
Copy link

Steps to Reproduce

  1. Log into the app (I'm connected to a self hosted server running on my home assistant instance, addon I'm running can be found at https://github.com/alexbelgium/hassio-addons
  2. Create a new workout with name and days
  3. Go to the details page and add a new set
  4. Search for a workout

Expected results: I should get a list of exercises back

Actual results: Screenshot_20231016_220351.jpg

Home Assistant Logs
[17/Oct/2023 03:10:27] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:32] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:37] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:42] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:48] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:53] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:10:58] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:03] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:08] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:13] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:18] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:23] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:28] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:33] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:38] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:43] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:48] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:53] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:11:58] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:03] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:08] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:13] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:19] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:24] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:29] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:34] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:39] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:44] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:49] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:54] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:12:59] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:04] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:09] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:14] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:20] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:25] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:30] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:35] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:40] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:45] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:50] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:13:55] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:00] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:05] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:10] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:15] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:20] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:25] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:30] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:36] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:41] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:46] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:51] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:14:56] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:01] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:06] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:11] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:16] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:21] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:26] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:31] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:36] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:41] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:46] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:51] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:56] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:15:57] "GET /api/v2/exercise/search/?term=bench+press&language=en HTTP/1.0" 200 2698
[17/Oct/2023 03:15:57] "GET /api/v2/exercisebaseinfo/76/ HTTP/1.0" 200 3654
[17/Oct/2023 03:15:57] "GET /api/v2/exercisebaseinfo/73/ HTTP/1.0" 200 4816
[17/Oct/2023 03:15:57] "GET /api/v2/exercisebaseinfo/185/ HTTP/1.0" 200 2988
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/186/ HTTP/1.0" 200 2036
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/598/ HTTP/1.0" 200 1415
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/537/ HTTP/1.0" 200 3763
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/1041/ HTTP/1.0" 200 3128
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/498/ HTTP/1.0" 200 1545
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/539/ HTTP/1.0" 200 3591
[17/Oct/2023 03:15:58] "GET /api/v2/exercisebaseinfo/538/ HTTP/1.0" 200 4459
[17/Oct/2023 03:15:59] "GET /api/v2/exercise/search/?term=bench+press+&language=en HTTP/1.0" 200 1770
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/76/ HTTP/1.0" 200 3654
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/185/ HTTP/1.0" 200 2988
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/186/ HTTP/1.0" 200 2036
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/538/ HTTP/1.0" 200 4459
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/537/ HTTP/1.0" 200 3763
[17/Oct/2023 03:15:59] "GET /api/v2/exercisebaseinfo/539/ HTTP/1.0" 200 3591
[17/Oct/2023 03:16:02] "GET / HTTP/1.0" 302 0
[17/Oct/2023 03:16:02] "GET /api/v2/exercise/search/?term=bench+press+&language=en HTTP/1.0" 200 1770
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/76/ HTTP/1.0" 200 3654
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/185/ HTTP/1.0" 200 2988
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/186/ HTTP/1.0" 200 2036
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/538/ HTTP/1.0" 200 4459
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/537/ HTTP/1.0" 200 3763
[17/Oct/2023 03:16:02] "GET /api/v2/exercisebaseinfo/539/ HTTP/1.0" 200 3591
[17/Oct/2023 03:16:06] "GET /api/v2/exercise/search/?term=bench+press+&language=en HTTP/1.0" 200 1770
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/185/ HTTP/1.0" 200 2988
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/76/ HTTP/1.0" 200 3654
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/538/ HTTP/1.0" 200 4459
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/186/ HTTP/1.0" 200 2036
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/537/ HTTP/1.0" 200 3763
[17/Oct/2023 03:16:06] "GET /api/v2/exercisebaseinfo/539/ HTTP/1.0" 200 3591
[17/Oct/2023 03:16:07] "GET / HTTP/1.0" 302 0

Let me know if more detail is needed, happy to provide it. Thanks!

@rolandgeider
Copy link
Member

mhh, you are right! I'll take a look later today

@rolandgeider rolandgeider added the bug Something isn't working label Oct 17, 2023
@rolandgeider rolandgeider self-assigned this Oct 17, 2023
@rolandgeider
Copy link
Member

can you update the server and see if this keeps happening?

@bocklucas
Copy link
Author

can you update the server and see if this keeps happening?

Hmm I can try but that addon is out of my control, I could open an issue in that repo though.

@bocklucas
Copy link
Author

can you update the server and see if this keeps happening?

Hmm I can try but that addon is out of my control, I could open an issue in that repo though.

Yeah looks like I'd have to open a ticket in their repo, I'll do that today and post it here

@rolandgeider
Copy link
Member

Great thank you!

Can you tag me as well?

@bocklucas
Copy link
Author

Great thank you!

Can you tag me as well?

Absolutely 😁

@bocklucas
Copy link
Author

Took a look at the code prior to making an issue, it appears it's supposed to pull the latest docker image and I saw it was recently updated on docker, clearing my local machine and trying again

@bocklucas
Copy link
Author

Took a look at the code prior to making an issue, it appears it's supposed to pull the latest docker image and I saw it was recently updated on docker, clearing my local machine and trying again

Hmm still having issues, will have to dig into this in a few hours, the wger code in the addon says it's pulling from the latest wger server docker image but I'm still having that issue so may still have to open a ticket but I'll be sure to tag you regardless

@rolandgeider
Copy link
Member

We merged a PR yesterday that bumped the version to 2.2.0a3, so you should be able to check if it did in fact pull a new image

@rolandgeider
Copy link
Member

I mean 2.2.0a4 😄

@bocklucas
Copy link
Author

bocklucas commented Oct 17, 2023

Hmmm for the life of me I can not get it to version 2.2.0a4, its on 2.2.0a3
Screenshot from 2023-10-17 18-52-09

I've tried uninstalling and doing a fresh build several times but with no luck

@bocklucas
Copy link
Author

Hey @rolandgeider , quick update for you, I finally ended up deploying the docker-compose setup on another server instead of using the Home Assistant addon and am now seeing this, are you able to replicate?
Screenshot_20231028_081122.jpg

@rolandgeider
Copy link
Member

I might have seen this before but could never really reproduce it, does this alway happen to you or only sometimes?

@bocklucas
Copy link
Author

Oh interesting, yeah this is happening all the time

@bocklucas
Copy link
Author

@rolandgeider will this require server side fixes or flutter fixes do you think?

@rolandgeider
Copy link
Member

I'd guess this is a flutter problem, we're probably not handling some corner case properly

@rolandgeider
Copy link
Member

We'll not a corner case for you 😄😄

@justinkirby
Copy link

justinkirby commented Nov 6, 2023

I just setup a brand new wger instance, using the docker procedure. First login using the mobile app, installed from fdroid, I get this error.

nvm: I reran sync-exercises and the error has gone away.

@bocklucas
Copy link
Author

bocklucas commented Nov 8, 2023

@justinkirby are you able to elaborate what steps you took to rerun sync-exercises? 🙏

@rolandgeider
Copy link
Member

@bocklucas you mean manually triggering the sync? You can just do docker compose exec web python3 manage.py sync-exercises

@bocklucas
Copy link
Author

@bocklucas you mean manually triggering the sync? You can just do docker compose exec web python3 manage.py sync-exercises

@rolandgeider correct yeah. Ooo awesome, OK I'll try that, not sure how that'll work in the Home Assistant setup but I'll give that a crack, thanks 😀

@horseDeveloper
Copy link

I've used wger.de with my browser for a few days, today I downloaded the app.
I am using the default server with android wger 1.5.6 - downloaded from F-Droid. I'm on Android 13.
I'm getting the same error.

Also, every time I open the app,

  • My weight logs do not appear on mobile. If I add an entry I'm able to pull down (triggering a refresh) - this updates the graph with the logs added from the website.
  • My "workout plans" do not appear on mobile. If I add an entry I'm able to pull down (triggering a refresh) - this updates the list with the workouts added from the website. When I press on one of them, it's empty (probably because it can't get the exercises)

@rolandgeider
Copy link
Member

hi! There should be a new version published on fdroid soon (as in it's been built, it just need to show up), can you try it with it once it's available?

@horseDeveloper
Copy link

horseDeveloper commented Nov 24, 2023

I just started with wger so I haven't logged any workouts yet, I'm just adding the exercises and testing things out, so I can't tell you anything about logging exercises yet. Good job :)

YESTERDAY - Quickly tested it, everything seems to work. Workouts come up, you can add exercises, weight logs are displayed. Everything comes up correctly as soon as I open the app, no need to pull-down-to-refresh .

TODAY - Weight logs are still displayed. Previously added workouts are correctly listed on mobile, but they have no exercises. I was able to add ONE exercise but after that one, now I get this error: Error: MissingRequiredKeysException: Required keys are missing: exercise_base.

TODAY PT.2 - I deleted data and cache, logged back in. Weight logs are still displayed. Previously added workouts are correctly listed on mobile, but they have no exercises. The exercise I added earlier has disappeared (but is visible from the website). Error: MissingRequiredKeysException: Required keys are missing: exercise_base

@Vcele
Copy link

Vcele commented Dec 20, 2023

For me I also get the error using the main instance. Anyway to solve this?

@mikekay1
Copy link

mikekay1 commented Jan 5, 2024

I am also getting this error, and when I try to sync exercises I get an error saying one of the exercises is too long 200 chars? could someone have contributed one that is blowing everyone's instance up?

image

image

@mikekay1
Copy link

mikekay1 commented Jan 5, 2024

It's so sad, that wger is our only option for this, I honestly feel like this application could be rebuilt ground up. I am a DBA if anyone is interested in forking it. I cant believe there is no self hosted solution for something like this :(

@rolandgeider
Copy link
Member

turns out, we were writing garbage to the alias field, am cleaning it up right now but the sync should work again

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants