Skip to content

/update endpoint does not work properly on macos #608

Open
@umbynos

Description

@umbynos

Bug Report

Describe the bug

When a POST request is sent to the agent on macos to the /update endpoint the communication is truncated because systray is run in the main thread and causes the gin goroutine to not exit gracefully. This behaviour is present only in the mac os version 🤷🏼‍♂️

To Reproduce

curl -X POST http://127.0.0.1:8991/update on macos version

Expected behavior

get {"success":"Please wait a moment while the agent reboots itself"} instead of connection closed

Environment (please complete the following information):

  • OS [e.g. Windows]: MacOS
  • OS version: 11 (Big Sur)
  • Browser [e.g. chrome, safari]: not a browser related problem
  • Browser Version:
  • Agent Version [e.g. 1.0.0]: 1.2.0

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions