heroku / heroku/platform-api

Delay on custom domain list status

Open
#76 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
216
Forks
85
PR merge metrics
No merged PRs in 30d

Description

```ruby
platform = PlatformAPI.connect_oauth(key)
hostnames = heroku.domain.list(app_name).map { |x| x['hostname'] }
platform.domain.create(APP_NAME, 'hostname' => "www.sampleDomain.com") unless

# create domain
hostnames.include? "www.someDomain.com"
=> {"acm_status"=>nil, "app"=>{...}, "cname"=>"www.sampleDomain.com.herokudns.com", "created_at"=>..., "hostname"=>"www.sampleDomain.com", "kind"=>"custom", "status"=>"succeeded", "updated_at"=>....}

# check in the list
platform.domain.list(APP_NAME).map { |x| x['hostname'] }.include? "www.sampleDomain.com"
=> false # any reason?
```

Sometimes, it took about 15 mins+ for the custom domain to be found in list.
Is there a way to tell whether the custom domain will be added to the list?
Can I rely on `domain.list` api? If not, what is the alternative?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.