Skip to content

Build button does not work when editing template (if tempalte is invalid) #16609

@Cjkjvfnby

Description

@Cjkjvfnby

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Nothing happens in UI when button is pressed (if template is invalid).

Relevant Log Output

POST https://****/api/v2/organizations/coder/templateversions

STATUS: 500

message	"Internal error checking workspace tags"
detail	'parse module: Argument or block definition required: An argument or block definition is required here. To set an argument, use the equals sign "=" to introduce the argument value.'

Expected Behavior

Error message is shown to user.

Message explains what happen and provide recommendation for the next steps.

Something like:
"Template is not valid, please fix it and build again: {message}"

Steps to Reproduce

  1. Open Template Edit window
  2. Type. "HELLO" at the first string
  3. Open browser development console
  4. Click build
  5. Check for response 500 in the browser development console

Environment

Additional Context

The issue occurs consistently

Metadata

Metadata

Assignees

Labels

s2Broken use cases or features (with a workaround). Only humans may set this.siteArea: frontend dashboard

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions