twilio-professional-services/flex-project-template

Project first deploy issue

rainara21 opened this issue · 2 comments

Our team is trying to use this template however even though we're following the tutorial we are unable to do the first deploy into the solution. We are receiving the same error in github Actions that shows sync is not working. We've received the error when creating a private and a public repository.

We have created a ticket on Twilio but all the possibilities we have applied and still got the same error below so the technical asked us to open this issue in the repository.

environmentVariables ENABLE_LOCAL_LOGGING,TWILIO_FLEX_WORKSPACE_SID,TWILIO_FLEX_SYNC_SID,TWILIO_FLEX_CHAT_SERVICE_SID,TWILIO_SERVERLESS_API_CONCURRENCY,TWILIO_SERVICE_RETRY_LIMIT,TWILIO_SERVICE_MIN_BACKOFF,TWILIO_SERVICE_MAX_BACKOFF,TWILIO_SYNC_MAX_BACKOFF,TWILIO_SYNC_MIN_BACKOFF,TWILIO_API_KEY,TWILIO_API_SECRET,VIDEO_CODE_LENGTH,VIDEO_CODE_TTL,VIDEO_ROOM_ALLOW_CREATE,VIDEO_ROOM_TYPE,VIDEO_RECORD_BY_DEFAULT,QUEUE_STATS_MAP_NAME,QUEUE_STATS_CUMULATIVE_PERIOD_MINUTES,QUEUE_STATS_SLA_SPLIT_PERIODS,QUEUE_STATS_TASKROUTER_STATS_BATCH_SIZE,QUEUE_STATS_SYNC_MAP_UPDATE_BATCH_SIZE,TWILIO_FLEX_CALLBACK_WORKFLOW_SID,TWILIO_FLEX_CHAT_TRANSFER_WORKFLOW_SID,TWILIO_FLEX_INTERNAL_CALL_WORKFLOW_SID
- Deploying Function
runtime              node18                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

✖ Failed Deployment

│ ERROR Failed API Request 20409
│ 
│ Environment with this UniqueName or DomainSuffix already exists.
│ 
│ More info: https://www.twilio.com/docs/errors/20409 

Could you help us please?

Hi @rainara21! I'm a bit surprised that you are receiving this error. Could you please check within your Twilio Console > Functions & Assets > Services, if there is a service already existing named custom-flex-extensions-serverless? If so, please try removing that service (assuming you are not using it elsewhere) and attempt another deploy.

Closing after no response, feel free to re-open if this is still an issue!