AWeber’s API is built to be easy to use and reliable. To assist with that goal the API can return a variety of errors when something goes wrong. There are a variety of reasons why errors occur and the cause could be the developer or the API itself. HTTP status codes and the error message can give you a clue. In general, a 5xx status code can be retried, a 4xx status code should be checked first, and a 3xx or 2xx code does not need retried. For more details on retrying common AWeber API errors see the list below.
Status Code: 503
Message: API Unavailable
Retry this error. The API Unavailable error means that AWeber’s API was not able to complete your request. Causes could include the API being down for maintenance or a problem on our side. If you are actively working on your application, first check AWeber's Status Page to see if we are experiencing either an unexpected problem or planned maintenance period. If the status page is clear, retry the request. In a production setting, you can retry these two or three times with a wait in between. If your application continuously receives a 503 response reach out to us at firstname.lastname@example.org with the details of your request and we’d be happy to take a look.
Status Code: 403
Message: Rate Limit Error
Retry this request after waiting. AWeber’s API does have a rate limit, and this is the error we return when the limit is exceeded. It’s okay to retry your request after waiting a bit. See our article on rate limiting for full details.
Status Code: 403
Message: Email address cannot be accepted at this time.
Retry this error after waiting. This error should be handled using an exponential backoff and retry method. This means you should wait an hour and try again, then two hours, then four hours, and so on. Alternatively the email can be added via a sign-up form or importing instead of the API if it needs to be added immediately.
Status Code: 403
Message: This account is not accepting requests at this time
Retry this error after waiting. This error arises when an account is temporarily not accepting additional subscribers. This error should be handled using an exponential backoff and retry method. This means you should wait an hour and try again, then two hours, then four hours, and so on. Wait a few hours and try the request again. If you plan to add a large group of subscribers to an account using the import page will be faster and easier.
Status Code: 401
Do not retry these. A 401 status code means the authorization sent by your code was incorrect, so there’s something to be fixed before making the request again. Read the error message to determine what the problem is. Common causes are an expired access token (for OAuth 2), an invalid consumer key and secret pair (for OAuth 1), or a billing issue with the customer’s account. Refer to our Authentication documentation for details.
Status Code: 400
If you’re adding a subscriber, do not retry a 400 error. Read the error message before trying again, because there’s either a problem with the request or with the email address itself. Common errors with status code 400 when adding a subscriber are “Subscriber already exists” and “Email address is invalid”, along with standard request formatting errors. If you can’t figure out what’s going on check our add subscriber documentation or send us an email at email@example.com with the details.
Getting a different error? If you’re not sure if retrying is appropriate in your situation or if you’re not sure what an error means don’t hesitate to email us at firstname.lastname@example.org and we’ll be happy to assist.