Family member can't enable location sharing
OS Unraid 7.1.4 using the latest Compose stack
Version 0.35.1
Describe the bug Family member can't enable location sharing
To Reproduce Steps to reproduce the behavior:
- Go to 'Family'
- Click 'Location sharing' slider to enable
- Error message received and 'Location sharing' slider changes back to disabled
Expected behavior Ability for family members to enable/disable location sharing
Logs Notification error "Network error occurred while updating location sharing" is shown, followed by "You are not authorized to perform this action"
Additional context Due to the fact that the error message appears to be permissions related, I set the family member account to an admin, but that had no impact. I also can't find any error messages in any of the Compose stack.
I had the same issue, and if I remember correctly, restarting Dawarich fixed it (edit: I did not, and it does not): I am selfhosting. v0.34, not v0.35 yet. I created a family and invited 4 people. All turned on location sharing, no issues. At this point, the invitation to the 5th family member is out, but he cannot accept it. This will be fixed in 0.35. Some days later, v0.35 rolled out. 5th family member goes to accept his invitation. That is successful. He tries to turn on location sharing, and it fails with "Network error occurred while updating location sharing", but no "You are not authorized" error. After waiting a little to see if my network was the issue, I confirmed it wasn't, because everything else loaded fine, I restarted Dawarich. After the restart, he was able to update the location sharing toggle.
Thanks for the reply but no luck :( Restarted the container and still see the same behavior.
I tested it again, and in v0.35.1, no family member (in a 5 account family) can toggle location sharing, neither on nor off, however, the family founder / Owner account can.
Interesting. I created the Family with an admin account but I can only enable/disable location sharing for my own account, not for the members. I can only see the member's location sharing status (disabled).
OS Unraid 7.1.4 using the latest Compose stack
Version 0.35.1
Describe the bug Family member can't enable location sharing
To Reproduce Steps to reproduce the behavior:
1. Go to 'Family' 2. Click 'Location sharing' slider to enable 3. Error message received and 'Location sharing' slider changes back to disabledExpected behavior Ability for family members to enable/disable location sharing
Logs Notification error "Network error occurred while updating location sharing" is shown, followed by "You are not authorized to perform this action"
Additional context Due to the fact that the error message appears to be permissions related, I set the family member account to an admin, but that had no impact. I also can't find any error messages in any of the Compose stack.
Please provide logs from both dawarich_sidekiq and dawarich_app containers
dawarich_app.log dawarich_sidekiq.log
When the toggle is toggled from a non-owner, the GET request to https://dawarich.walzen.org/family returns 406 Not Acceptable
Hi,
Same problem for me I can enable location sharing for my account and the members can see it but when they try to enable they get the network error.
I have the same problem, also in Unraid with the dockers from Community Apps
ActionController::UnknownFormat (FamiliesController#show is missing a template for this request format and variant.
"Your controller action (FamiliesController#show) was called with a request asking for JSON (Accept: application/json header), but Rails couldn’t find anything to render for that format."
The fix will be included in the next release, thank you
For anyone who doesn't want to wait,, this is what I did. Downgrade to 0.34.2, log into each account and toggle location sharing on, then upgrade back to 0.35.1.
I am still having issues even after updating to the latest version (0.36.0). Now I get the following error in the logs:
ActionController::RoutingError (No route matches [PATCH] "/family/update_location_sharing"):
instead of previous error:
ActionController::UnknownFormat (FamiliesController#show is missing a template for this request format and variant.
I updated to 0.36.0 just now and the previously bugged toggle now worked, I'm not getting the error @waleedhad is getting. The feature works properly for me.