digitalocean / digitalocean/droplet_kit

Core API Issue on adding droplet into load balancer

Open
#153 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
521
Forks
151
PR merge metrics
No merged PRs in 30d

Description

I am reporting issue more on the core API, instead of the ruby interface, as this happens on both ruby and curl.

When I try to add a droplet into a load balancer, using:
```
@client.load_balancers.add_droplets([droplet1_id], id: lb.id)
```

It just returns
```
Error: 422: {"id":"unprocessable_entity","message":"need to provide either a tag or a list of droplets","request_id":"f80013f6-f06b-400f-8591-cb6d5305dbb6"}.
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the failure with load_balancers.add_droplets([droplet1_id], id: lb.id), then compare the request produced by the Ruby client with the equivalent curl request. Trace the add_droplets entry point and verify that the API receives a list of droplets; done means adding the droplet succeeds without the 422 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.