Skip to content
New issue

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

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

Already on GitHub? # to your account

500 on PUT /v2/workers/{worker_id} with team set to empty string #480

Open
bosconian-dynamics opened this issue Jan 29, 2025 · 0 comments · Fixed by #481
Open

500 on PUT /v2/workers/{worker_id} with team set to empty string #480

bosconian-dynamics opened this issue Jan 29, 2025 · 0 comments · Fixed by #481

Comments

@bosconian-dynamics
Copy link
Contributor

bosconian-dynamics commented Jan 29, 2025

It seems like unsetting a worker's team is presently impossible on the v2 API:

  • tinybots.net/artbot sends a payload with "team": null which fails type validation for the parameter.
  • artbot.site (v2) sends an empty string as suggested in the endpoint doc, but the server responds with HTTP 500 (briefly alluded to in feat: implement worker management artbot#56)

Both ArtBot deployments send the team ID with each Update Single Worker request - so as a side effect, both appear to be unable to update the name/info fields for workers unless a team is selected.

I have confirmed the null/"" responses and inability to update info/name when sending either empty team value in the payload via Postman, as well.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant