You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return'One of the options passed might be incorrect'
38
+
}
39
+
if(code===403||code===401){
40
+
return'Your Socket API token may not have the required permissions for this command or you might be trying to access (data from) an organization that is not linked to the API token you are logged in with'
41
+
}
42
+
if(code===404){
43
+
return'The requested Socket API endpoint was not found (404) or there was no result for the requested parameters. If unexpected, this could be a temporary problem caused by an incident or a bug in the CLI. If the problem persists please let us know.'
44
+
}
45
+
if(code===500){
46
+
return'There was an unknown server side problem with your request. This ought to be temporary. Please let us know if this problem persists.'
47
+
}
48
+
return`Server responded with status code ${code}`
49
+
}
50
+
22
51
exporttypeHandleApiCallOptions={
23
52
desc?: string|undefined
24
53
spinner?: Spinner|undefined
@@ -142,35 +171,6 @@ export async function handleApiCallNoSpinner<T extends SocketSdkOperations>(
return'One of the options passed might be incorrect'
148
-
}
149
-
if(code===403||code===401){
150
-
return'Your Socket API token may not have the required permissions for this command or you might be trying to access (data from) an organization that is not linked to the API token you are logged in with'
151
-
}
152
-
if(code===404){
153
-
return'The requested Socket API endpoint was not found (404) or there was no result for the requested parameters. If unexpected, this could be a temporary problem caused by an incident or a bug in the CLI. If the problem persists please let us know.'
154
-
}
155
-
if(code===500){
156
-
return'There was an unknown server side problem with your request. This ought to be temporary. Please let us know if this problem persists.'
157
-
}
158
-
return`Server responded with status code ${code}`
159
-
}
160
-
161
-
// The Socket API server that should be used for operations.
0 commit comments