---
title: Common issues when using AWS Gateway
description: Understand common errors in AWS Gateway related to the use of API Keys and Usage Plans..
documentId: developer-portal-problems-aws-gateway
locale: en-US
---

On this page, we will list common issues when using AWS Gateway.

<a id="_conflict_when_using_an_api_key_for_multiple_stages"></a>
## Conflict when using an API Key for multiple stages

- **Error returned by AWS**

```
An error occurred (ConflictException) when calling the CreateUsagePlanKey operation: Usage Plan "usage-plan-id" cannot be added because API Key "api-key-id" cannot reference multiple Usage Plans with the same API Stage: "api-stage-id":"api-stage-name"
```

- **Description**

This error occurs because an API Key cannot reference multiple Usage Plans with the same API Stage. Read the [Usage Plans official documentation](https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-api-usage-plans.html#api-gateway-api-usage-plans-overview) to understand how to best use this feature.
