Skip to content

Instantly share code, notes, and snippets.

@sashadev-sky
Created February 24, 2020 21:18
Show Gist options
  • Select an option

  • Save sashadev-sky/1330696fb78aabdfe647ca92aa4d88d4 to your computer and use it in GitHub Desktop.

Select an option

Save sashadev-sky/1330696fb78aabdfe647ca92aa4d88d4 to your computer and use it in GitHub Desktop.
**Error:**
3.1) Failure/Error: @service = @fastly.create_service(:name => name)
Fastly::Error:
{"msg":"Bad request","detail":"Exceeding max_total_services: 10"}
**Solution**
```
$ rails c
fastly = Fastly.new(api_key: ENV['FASTLY_API_KEY'])
fastly.list_services.each { |service| fastly.delete_service(service) }
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment