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

Agent Registration Fails Due to 201 Status Code #318

Closed
vikman90 opened this issue Nov 19, 2024 · 0 comments · Fixed by #319
Closed

Agent Registration Fails Due to 201 Status Code #318

vikman90 opened this issue Nov 19, 2024 · 0 comments · Fixed by #319
Assignees
Labels
level/task Task issue module/agent mvp Minimum Viable Product refinement type/bug Bug issue

Comments

@vikman90
Copy link
Member

vikman90 commented Nov 19, 2024

Parent Issue: #241

Description

When an agent successfully registers, the API responds with status code 201. However, the agent incorrectly interprets this status as an error:

Registration error: 201.
wazuh-agent registration failed

Steps to Reproduce

  1. Register an agent against a properly configured API.
  2. Observe the registration process logs.
  3. Note that despite a 201 response, the agent reports the registration as failed.

Expected Behavior

The agent should treat 201 as a success code for registration, not as an error.

Proposal

Update the agent to correctly handle a 201 status code as a successful registration response.

@vikman90 vikman90 added the mvp Minimum Viable Product refinement label Nov 19, 2024
@vikman90 vikman90 self-assigned this Nov 19, 2024
@wazuhci wazuhci moved this to In progress in Release 5.0.0 Nov 19, 2024
@vikman90 vikman90 linked a pull request Nov 19, 2024 that will close this issue
3 tasks
@wazuhci wazuhci moved this from In progress to Pending review in Release 5.0.0 Nov 19, 2024
@wazuhci wazuhci moved this from Pending review to Done in Release 5.0.0 Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue module/agent mvp Minimum Viable Product refinement type/bug Bug issue
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant