Skip to content

template alias is already taken #1006

@marswong

Description

@marswong

Describe the bug
Just created a private template with the same config using a new API Key of a new project and got the error Alias is already taken.

To Reproduce
Just build a noop template with the same alias using different API keys from different projects.

Expected behavior
The template should be built successfully.

Terminal commands & output

0.0s  | 18:02:12 INFO  Requesting build for template: claude-code-serve-test
Response 400.4s
Traceback (most recent call last):
  File "/Users/mars/Projects/marswong/x/backend/app/e2b/build_template.py", line 16, in <module>
    Template.build(template,
  File "/Users/mars/Projects/marswong/x/backend/.venv/lib/python3.10/site-packages/e2b/template_sync/main.py", line 101, in build
    response = request_build(
  File "/Users/mars/Projects/marswong/x/backend/.venv/lib/python3.10/site-packages/e2b/template_sync/build_api.py", line 45, in request_build
    raise handle_api_exception(res, BuildException)
e2b.exceptions.BuildException: 400: Alias `claude-code-serve-test` is already taken

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions