I'm hoping I'm just doing something wrong here. When calling heroku.domain.create(), I'm getting a 400 error.
To start, here's what works.
irb(main):003:0> heroku.domain.list('app12345@heroku.com')
=> [{"acm_status"=>nil, ...}]
irb(main):004:0> heroku.domain.delete('app12345@heroku.com', '*.example.com')
=> {"acm_status"=>nil, ...}
# I was able to confirm that this does delete the domain
Our API docs suggest that either the UUID or app name should suffice (even the heroku_id works in the delete example above!), which makes me wonder why using the UUID returns a 404 while the app name example returns a 400.
Am I just doing something dumb? It seems pretty straightforward.
Update: in a humbling turn of events, the alternate error I was receiving above for the UUID method was indeed valid; I somehow had the wrong UUID for the app. correcting this yields the same 400 BadRequest error the other two commands were returning.
Using EXCON_DEBUG returns the following (assuming the important bits, omitting others - let me know if you need something else):
I'm hoping I'm just doing something wrong here. When calling
heroku.domain.create()
, I'm getting a 400 error.To start, here's what works.
And here's what doesn't.
Our API docs suggest that either the UUID or app name should suffice (even the heroku_id works in the
delete
example above!), which makes me wonder why using the UUID returns a 404 while the app name example returns a 400.Am I just doing something dumb? It seems pretty straightforward.
Update: in a humbling turn of events, the alternate error I was receiving above for the UUID method was indeed valid; I somehow had the wrong UUID for the app. correcting this yields the same 400 BadRequest error the other two commands were returning.
Using
EXCON_DEBUG
returns the following (assuming the important bits, omitting others - let me know if you need something else):