microsoft/typescript-go · error · ErrorCode
-32600
-32600
Error message
%w: %w
What it means
Error "%w: %w" thrown in microsoft/typescript-go.
Source
Thrown at internal/lsp/lsproto/jsonrpc.go:44
}
func (m *Message) AsResponse() *ResponseMessage {
return m.msg.(*ResponseMessage)
}
func (m *Message) UnmarshalJSON(data []byte) error {
var raw struct {
JSONRPC jsonrpc.JSONRPCVersion `json:"jsonrpc"`
Method Method `json:"method"`
ID *jsonrpc.ID `json:"id,omitzero"`
Params json.Value `json:"params"`
// We don't have a method in the response, so we have no idea what to decode.
// Store the raw text and let the caller decode it.
Result json.Value `json:"result,omitzero"`
Error *jsonrpc.ResponseError `json:"error,omitzero"`
}
if err := json.Unmarshal(data, &raw); err != nil {
return fmt.Errorf("%w: %w", ErrorCodeInvalidRequest, err)
}
if raw.ID != nil && raw.Method == "" {
m.Kind = jsonrpc.MessageKindResponse
m.msg = &ResponseMessage{
ID: raw.ID,
Result: raw.Result,
Error: raw.Error,
}
return nil
}
var params any
if len(raw.Params) > 0 {
params = raw.Params
}
if raw.ID == nil {
m.Kind = jsonrpc.MessageKindNotificationView on GitHub (pinned to 1bcfa18d79)
When it happens
Trigger: Thrown at internal/lsp/lsproto/jsonrpc.go:44 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of microsoft/typescript-go@1bcfa18d79 (2026-08-16).
Data as JSON: /api/errors/0aeb992d1e5551d5.
Report an issue: GitHub.