ecmwfapi.api.APIException: u'ecmwf.API error 1: Invalid or missing key or token'


There are 3 possible issues for this error:
  1. The file .ecmwfapirc does not exist or has an invalid format
    1. You should go to and copy exactly the content of the text box into the file $HOME/.ecmwfapirc
  2. Your token has expired:
    1. Logging in to will trigger the creation of a new one. Just replace the old one with the new one. 
  3. Your token has been manually disabled by our operators
    1. You should have received an email explaining the reason for that. If that is not the case, contact us.