Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show error notification if extension settings fail to sync with the sidecar preferences API #1011

Open
sentry-io bot opened this issue Feb 4, 2025 · 0 comments

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 4, 2025

Sentry Issue: VSCODE-EXTENSION-K9

ResponseError: Response returned an error code
  File "..\src\clients\sidecar\runtime.ts", line 147, in {_BaseAPI#2}.request
    throw new ResponseError(response, "Response returned an error code");
  File "..\src\clients\sidecar\apis\PreferencesResourceApi.ts", line 75, in PreferencesResourceApi.gatewayV1PreferencesPutRaw
    const response = await this.request(
  File "..\src\clients\sidecar\apis\PreferencesResourceApi.ts", line 95, in PreferencesResourceApi.gatewayV1PreferencesPut
    const response = await this.gatewayV1PreferencesPutRaw(requestParameters, initOverrides);
  File "..\src\preferences\updates.ts", line 40, in updatePreferences
    const resp = await client.gatewayV1PreferencesPut({
  File "..\src\preferences\listener.ts", line 25, in <anonymous>
    await updatePreferences({
...
(1 additional frame(s) were not displayed)

Example:

{
  "status":"400",
  "code":"invalid_preferences",
  "title":"Provided preferences are not valid",
  "id":"fa75285e-419d-4525-8596-b927fcb0563e",
  "errors":[
    {
      "code":"cert_not_found",
      "title":"Cert file cannot be found",
      "detail":"The cert file <path> cannot be found.",
      "source":"/spec/tls_pem_paths"
    }
  ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants