Warning of route conflicts
Learn how to proceed if these warnings are displayed in Run when a deployment needs to be made.
When a pipeline is ready to be deployed, you need to take a number of actions, i.e., select the size, concurrent executions, and replicas. However, it is important to pay attention to the routes specified in the API Routes in Build.
This is because if a route is specified that already exists, conflicts will occur and deployment of the same routes will not be possible.
Parameter route warning
After you have made the configurations for the deployment, the last step is to click on Deploy. But if the Additional API Routes selected in the Build phase start with a parameter, this results in an error because a route has not yet been created and must not start with a parameter.
As you can see, when you use /:product, the original path to access the pipeline will be substituted.
![](https://docs.digibee.com/~gitbook/image?url=https%3A%2F%2F2041393763-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4523BaA7JfghHEYBbLWY%252Fuploads%252FPbxVZ4mnDVtlqLjsc9y5%252F01%2520-%2520Rotas.jpg%3Falt%3Dmedia%26token%3D61db7e68-2e8b-4da1-a352-129f21f70a13&width=768&dpr=4&quality=100&sign=6633cc05&sv=1)
So, in Run, if the parameters for a route are not established, the message below will appear informing you of this and the deployment will not be able to proceed.
![](https://docs.digibee.com/~gitbook/image?url=https%3A%2F%2F2041393763-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4523BaA7JfghHEYBbLWY%252Fuploads%252F9NfWVuRIKpMTACrzzK3r%252F02%2520-%2520Mensagem.jpg%3Falt%3Dmedia%26token%3Dce137df5-ded0-4e47-80a3-6a546240dbac&width=768&dpr=4&quality=100&sign=ec6d4a14&sv=1)
The correct way is to add a new route that gets a parameter - for example, /product/:id to solve this error. Learn more about customizing URLs here.
Same route warning
Another warning that appears when a deployment is to be made but an error is found is when a route is used that already exists in a different pipeline.
As we can see in the example below, the /conflict/route has already been used in a pipeline called 123-run-routes-2.
![](https://docs.digibee.com/~gitbook/image?url=https%3A%2F%2F2041393763-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4523BaA7JfghHEYBbLWY%252Fuploads%252FakfieZS8ZOXMfxfXAyGE%252F03%2520-%2520API%2520Routes.jpg%3Falt%3Dmedia%26token%3D86f0f2f4-4558-47cc-ad22-6aa1dcd2f89f&width=768&dpr=4&quality=100&sign=87dacad8&sv=1)
But if we set the same route, /conflict/route, in another pipeline as shown below, the different pipelines will have identical URLs, so only one of them will be executed.
![](https://docs.digibee.com/~gitbook/image?url=https%3A%2F%2F2041393763-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4523BaA7JfghHEYBbLWY%252Fuploads%252FMhKyNPT7Grvlw2mb1AEv%252F04%2520-%2520Routes.jpg%3Falt%3Dmedia%26token%3D80b31f38-dccf-47a1-8f38-609263fde0c8&width=768&dpr=4&quality=100&sign=603cb40b&sv=1)
In Run, a warning before deployment informs that the route is already being used in another pipeline. So, you need to change the route in the API Routes in Build and then deploy it in Run.
![](https://docs.digibee.com/~gitbook/image?url=https%3A%2F%2F2041393763-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F4523BaA7JfghHEYBbLWY%252Fuploads%252F55hS5qHxuUOK4IgZGXRw%252F05%2520-%2520final%2520Routes.jpg%3Falt%3Dmedia%26token%3Ddd49cacc-3058-4318-a5d1-1bfc9a80ad70&width=768&dpr=4&quality=100&sign=3c1cf791&sv=1)
To avoid this, we suggest using a naming pattern, for requests as well. This also brings some advantages, that is, greater control and security for these types of triggers (REST, HTTP and HTTP File), additional routes give more flexibility to pipelines and the user avoids double work when using legacies with less flexibility in terms of URL.
Last updated