Skip to content

Commit

Permalink
[Error Codes]: Update Meshery server and mehseryctl error codes and r…
Browse files Browse the repository at this point in the history
…eference

Signed-off-by: l5io <[email protected]>
  • Loading branch information
MUzairS15 authored and l5io committed Jul 30, 2024
1 parent fec178a commit fb90ed7
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 3 deletions.
9 changes: 9 additions & 0 deletions docs/_data/errorref/meshery-server_errors_export.json
Original file line number Diff line number Diff line change
Expand Up @@ -3206,6 +3206,15 @@
"short_description": "No session found in the request",
"probable_cause": "User is not authenticated with the selected Provider.\nBrowser might be restricting use of cookies.",
"suggested_remediation": "Choose a Provider and login to establish an active session (receive a new token and cookie). Optionally, try using a private/incognito browser window.\nVerify that your browser settings allow cookies."
},
"1357": {
"name": "ErrInvalidEventDataCode",
"code": "1357",
"severity": "Alert",
"long_description": "ActedUpon, Action, Category and Severity are required fields of an event",
"short_description": "The event provided is not valid",
"probable_cause": "",
"suggested_remediation": "Ensure that ActedUpon, Action, Category and Severity are present in the event"
}
}
}
Expand Down
9 changes: 9 additions & 0 deletions docs/_data/errorref/mesheryctl_errors_export.json
Original file line number Diff line number Diff line change
Expand Up @@ -3206,6 +3206,15 @@
"short_description": "No session found in the request",
"probable_cause": "User is not authenticated with the selected Provider.\nBrowser might be restricting use of cookies.",
"suggested_remediation": "Choose a Provider and login to establish an active session (receive a new token and cookie). Optionally, try using a private/incognito browser window.\nVerify that your browser settings allow cookies."
},
"1357": {
"name": "ErrInvalidEventDataCode",
"code": "1357",
"severity": "Alert",
"long_description": "ActedUpon, Action, Category and Severity are required fields of an event",
"short_description": "The event provided is not valid",
"probable_cause": "",
"suggested_remediation": "Ensure that ActedUpon, Action, Category and Severity are present in the event"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion server/helpers/component_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "meshery-server",
"type": "component",
"next_error_code": 1357
"next_error_code": 1358
}
4 changes: 2 additions & 2 deletions server/models/error.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ const (
ErrUnreachableRemoteProviderCode = "meshery-server-1301"
ErrShareFilterCode = "meshery-server-1302"
ErrPersistEventCode = "meshery-server-1303"
ErrInvalidEventDataCode = "replace-me"
ErrInvalidEventDataCode = "meshery-server-1357"
ErrUnreachableKubeAPICode = "meshery-server-1304"
ErrFlushMeshSyncDataCode = "meshery-server-1305"
ErrUpdateConnectionStatusCode = "meshery-server-1306"
Expand Down Expand Up @@ -561,4 +561,4 @@ func ErrUpdateResource(name, namespace string) error {
[]string{},
[]string{"Possible causes include invalid resource configuration, insufficient permissions, or network issues."},
[]string{"Verify the resource configuration and ensure it is correct. Ensure you have the necessary permissions to update the resource. Check network connectivity to the Kubernetes cluster."})
}
}

0 comments on commit fb90ed7

Please sign in to comment.