Skip to content

gui: "TypeError: Cannot read properties of undefined (reading 'label')" when trying to accept multiple shared folders using the Web GUI #8589

Closed

Description

@tomasz1986

I've encountered this issue quite a few times. Basically, when you share multiple folders from Device A to Device B, and then use the Web GUI on the latter to quickly click the "Share" button for multiple folders, the GUI sometimes throws up the following error.

TypeError: Cannot read properties of undefined (reading 'label')
    at syncthingController.js:2178:78
    at processQueue (angular.js:13337:27)
    at angular.js:13353:27
    at Scope.$eval (angular.js:14589:28)
    at Scope.$digest (angular.js:14405:31)
    at Scope.$apply (angular.js:14694:24)
    at angular.js:14984:22
    at completeOutstandingRequest (angular.js:4959:10)
    at angular.js:5347:7

An easy way to reproduce would be something like this.

  1. Share multiple (e.g. 10+) folders between Device A and Device B, then let everything sync.
  2. Share the same folders between Device A and Device C, then also let them sync.
  3. Now, share the folders from Device C to Device B.
  4. Wait for the multiple notifications to appear in the Web GUI on Device B.
  5. Lastly, on Device B try to quickly click the "Share" button for multiple folders one after another. Do not wait for the first notification to disappear before moving to the next though, just keep clicking the button for each folder even if the previous notifications are still on the screen.
  6. The error may then randomly show up after trying to "share" a few of the folders.

I've experienced this problem especially when administering another device remotely, where there is a lag between the click and the GUI response. Also, the slower the hardware, the more likely is the error to show up.

Activity

  1. added
    bug
    needs-triage
    on Oct 7, 2022
  2. changed the title [-]"TypeError: Cannot read properties of undefined (reading 'label')" when trying to accept multiple shared folders using the Web GUI[/-] [+]guy: "TypeError: Cannot read properties of undefined (reading 'label')" when trying to accept multiple shared folders using the Web GUI[/+] on Mar 10, 2023
  3. changed the title [-]guy: "TypeError: Cannot read properties of undefined (reading 'label')" when trying to accept multiple shared folders using the Web GUI[/-] [+]gui: "TypeError: Cannot read properties of undefined (reading 'label')" when trying to accept multiple shared folders using the Web GUI[/+] on Mar 10, 2023
  4. removed
    needs-triage
    on Mar 10, 2023
  5. tomasz1986 commented on Jul 26, 2024

    @tomasz1986
    MemberAuthor

    Closing as the issue was essentially fixed by #9063. As of now, it is impossible to try accepting multiple folders at once, because the Web GUI waits for the config to get saved first after each operation.

  6. added
    frozen-due-to-age
    on Jul 26, 2025
  7. locked and limited conversation to collaborators on Jul 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions