Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandbox creation error message is not human friendly #129

Open
GRyall opened this issue Mar 18, 2019 · 0 comments
Open

Sandbox creation error message is not human friendly #129

GRyall opened this issue Mar 18, 2019 · 0 comments

Comments

@GRyall
Copy link

GRyall commented Mar 18, 2019

If you try and create a sandbox with a name that is longer than the limit, instead of a human friendly error message you get:
Internal Server Error: (psycopg2.DataError) value too long for type character varying(32) [SQL: "INSERT INTO branch (id, branch_type, name, compiler, is_sync_valid, autosync, owner_id, formats, creation_date, comments) VALUES (nextval('branch_id_seq'), %(branch_type)s, %(name)s, %(compiler)s, %(is_sync_valid)s, %(autosync)s, %(owner_id)s, %(formats)s, %(creation_date)s, %(comments)s) RETURNING branch.id"] [parameters: {'is_sync_valid': True, 'name': 'gocdbdatabaseserverthatffffingworks', 'autosync': True, 'comments': None, 'creation_date': datetime.datetime(2019, 3, 18, 14, 12, 7, 394929), 'formats': None, 'owner_id': 13, 'branch_type': 'sandbox', 'compiler': '/var/quattor/panc/panc-10.7-jar-with-dependencies.jar'}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant