Title: Create workspace via Web UI using the `do-linux` template results in error · Issue #2161 · coder/coder · GitHub
Open Graph Title: Create workspace via Web UI using the `do-linux` template results in error · Issue #2161 · coder/coder
X Title: Create workspace via Web UI using the `do-linux` template results in error · Issue #2161 · coder/coder
Description: Steps to reproduce: coder templates create do-linux -d ~/src/coder/examples/templates/do-linux Open web UI to create a new workspace (/workspaces/new) Select do-linux Error Some value is expected to have .length but is null instead. Addi...
Open Graph Description: Steps to reproduce: coder templates create do-linux -d ~/src/coder/examples/templates/do-linux Open web UI to create a new workspace (/workspaces/new) Select do-linux Error Some value is expected t...
X Description: Steps to reproduce: coder templates create do-linux -d ~/src/coder/examples/templates/do-linux Open web UI to create a new workspace (/workspaces/new) Select do-linux Error Some value is expected t...
Opengraph URL: https://github.com/coder/coder/issues/2161
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create workspace via Web UI using the `do-linux` template results in error","articleBody":"Steps to reproduce:\r\n\r\n1. `coder templates create do-linux -d ~/src/coder/examples/templates/do-linux`\r\n2. Open web UI to create a new workspace (`/workspaces/new`)\r\n3. Select `do-linux`\r\n4. Error\r\n\r\nSome value is expected to have `.length` but is null instead.\r\n\r\nAdding both backend and frontend labels as I did not investigate if the type contract is broken by the API or not.\r\n\r\nAt least one response from the API (`/api/v2/templateversions/[uuid]/schema`) has `validation_contains` set to `null`. Ideally it would be an empty array as I don't think the distinction matters.\r\n\r\n```\r\n======================= STACK TRACE ========================\r\n\r\nCannot read properties of null (reading 'length')\r\n at X (http://localhost:4000/bundle.5d728432d907df1db6f6.js:1:6936)\r\n at aa (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:651913)\r\n at Vs (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:703962)\r\n at Au (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:691236)\r\n at Tu (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:691164)\r\n at Cu (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:691027)\r\n at gu (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:688014)\r\n at http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:637835\r\n at t.unstable_runWithPriority (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:753812)\r\n at Vi (http://localhost:4000/bundle.43fdb3edbbcc5a08d2e9.js:2:637612)\r\n\r\n============================================================\r\n```","author":{"url":"https://github.com/mafredri","@type":"Person","name":"mafredri"},"datePublished":"2022-06-08T11:54:36Z","url":"https://github.com/coder/coder/issues/2161"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:948111bf-739d-1c87-6648-54413453f5bc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B30C:3F8A67:1E321D6:284E85F:6B0176AE |
| html-safe-nonce | c5f27eda8dabac57f17f4d0741e024331692ea7477ba0ac448e32e3a7bda65fe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzBDOjNGOEE2NzoxRTMyMUQ2OjI4NEU4NUY6NkIwMTc2QUUiLCJ2aXNpdG9yX2lkIjoiODI1MTQ0NDQ1NDUxMTE3OTQzOCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a0190a145e02efa68be08276078feece97c06b2c0542d5a9b90d31cf11a74a40 |
| hovercard-subject-tag | issue:1264626433 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/coder/coder/2161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/65f3343416c8cd02fa7032754742fb18a11050a93c678bbda0065335a21172b5/coder/coder/issues/2161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/65f3343416c8cd02fa7032754742fb18a11050a93c678bbda0065335a21172b5/coder/coder/issues/2161 |
| og:image:alt | Steps to reproduce: coder templates create do-linux -d ~/src/coder/examples/templates/do-linux Open web UI to create a new workspace (/workspaces/new) Select do-linux Error Some value is expected t... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mafredri |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/coder/coder git https://github.com/coder/coder.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 440752086 |
| octolytics-dimension-repository_nwo | coder/coder |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 440752086 |
| octolytics-dimension-repository_network_root_nwo | coder/coder |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width