We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent13beb04 commitf5dbc71Copy full SHA for f5dbc71
coderd/workspaceagentsrpc.go
@@ -40,10 +40,10 @@ func (api *API) workspaceAgentRPC(rw http.ResponseWriter, r *http.Request) {
40
41
version:=r.URL.Query().Get("version")
42
ifversion=="" {
43
-httpapi.Write(ctx,rw,http.StatusBadRequest, codersdk.Response{
44
-Message:"Missing required query parameter:version",
45
-})
46
-return
+// The initial version on this HTTP endpoint was 2.0, so assume this version if unspecified.
+// Coder v2.7.1 (not to be confused with the Agent APIversion) calls this endpoint without
+// a version parameter and wants Agent API version 2.0.
+version="2.0"
47
}
48
iferr:=proto.CurrentVersion.Validate(version);err!=nil {
49
httpapi.Write(ctx,rw,http.StatusBadRequest, codersdk.Response{