Addressfinder

The best way to find exact addresses in New Zealand

  • Skip to Main Navigation
  • Skip to Footer Sitemap
  • Skip to Top
  • Pricing
  • Features
    • Autocomplete
      Search addresses and locations as you type
    • Bulk Cleansing
      Verify a database of addresses
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Bounding Box
      Collect all addresses within a defined area
    • MORE FEATURES
  • About us
  • Case studies
  • FAQ
  • Contact
  • Blog
  • JavaScript widget docs
  • API developer docs
  • Pricing
  • Features
    • Autocomplete
      Search addresses and locations as you type
    • Bulk Cleansing
      Verify a database of addresses
    • Geocode Addresses
      Collect addresses and GPS coordinates together
    • Bounding Box
      Collect all addresses within a defined area
    • MORE FEATURES
  • More
    • Company & product
      • About Us
      • Case Studies
      • FAQ
      • Partners
      • Blog
      Contact Us
    • Integrations
      • Magento
      • WooCommerce
      • BigCommerce
      • Salesforce
      • Shopify Plus
      See all integrations
    • JavaScript widget docs
      • Integration Guide
      • Widget Code Generator
      • Widget Reference
      • Code Examples
      See all JavaScript docs
    • API developer docs
      • Address Autocomplete
      • Address Metadata
      • Address Verification
      • API Errors
      See all API docs
  • Login
  • Blog
    • Technology
      • Quick fix for Docker’s ‘toomanyrequests: you have reached your pull rate limit’ from Travis

Quick fix for Docker’s ‘toomanyrequests: you have reached your pull rate limit’ from Travis

#Technology #Fix #Travis #docker

1*qbHR8nSKaTnxf5rBlPqWxA.png

Oh no! My Travis build is broken!

The dreaded red cross has appeared on your build, but this time, the build has errored with this message:

ERROR: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Recently, Docker introduced a download rate limit on pull requests. What this means is, a user or IP address can pull a Docker image from Docker hub a limited number of times.

For an anonymous user, that’s 100 pulls per 6 hours per IP address. Quite generous you would think. But what if, like us at AddressFinder, you are using an integration service like Travis CI?

Travis pulls the docker image from one of a few IP addresses and given the number of Travis users, the 100 pulls per 6 hours limit is easily reached.

OK, thanks for that, but what I really want to know is how to fix my problem

Sure thing! It’s actually quite easy! You’ll need to do three things:

  • Create an account on Docker Hub (the free account will allow up to 200 container image requests per 6 hours).
  • Go to your Travis settings on GitHub or Bitbucket and add your new DOCKER_PASSWORD and DOCKER_USERNAME to the environment variables. (Go to More Options > Settings.)

1*W9FpJR-8YgE9Xwag95P-YA.png

  • Insert the following line to your travis.yml file, before running any of your docker commands:

echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin

1*3YzBGnCs0K1R-26Zbd73ig.png

And you’re done! Restart your Travis build and you should get that nice green tick we all love to see.

Here’s some further reading if you’d like to know more:

  • Travis’ IP addresses
  • Using Docker in Travis builds
  • Docker Download rate limit
#Technology #Fix #Travis #docker
Published: 8 February 2021
Cass Guinut
Cass Guinut
Addressfinder logo
Addressfinder provides speedy, accurate and dependable address autocompletion at a fair price. Easily integrate our address finder software with your site to start enjoying our address verification, address autocomplete and other address services today.

Sitemap

  • Home
  • About
  • Contact
  • Blog
  • FAQ
  • Pricing
  • Case Studies
  • Status Page
  • Privacy Policy
  • Terms & Conditions
  • Features
  • Address Metadata
  • Bulk Cleansing
  • Geocode Addresses
  • Reverse Address Lookup
  • Points of Interest
  • Street, Suburb & City Search
  • Bounding Box Search
  • Postcode Finder
  • Address Verification
  • Integrations
  • WooCommerce
  • BigCommerce
  • Shopify Plus
  • Magento
  • Salesforce
  • Spiffy Stores
  • iOS
  • Ruby
  • HubSpot
  • Drupal
  • Microsoft Dynamics 365
  • Vue
  • Gravity Forms
  • React
  • API Documentation
  • Address Autocomplete
  • Address Metadata
  • Address Verification
  • API Errors
  • Another 6 APIs
  • AU APIs specs
  • International APIs
  • Widget Documentation
  • Integration Guide
  • International Integration Guide
  • Code Generator
  • Code Examples
  • Javascript Reference
Addressfinder is also available in Australia
Terms and Conditions | Privacy
Copyright © 2022 Addressfinder, New Zealand