extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Sourcegraph] Telemetry Error when using Self-hosted sourcegraph

Open samcho0608 opened this issue 10 months ago • 2 comments
trafficstars

Extension

https://www.raycast.com/bobheadxi/sourcegraph

Raycast Version

1.88.4

macOS Version

14.5(23F79)

Description

Context

  • Using self-hosted sourcegraph at company (uses VPN)
  • Error below began occur at a certain point
  • Works fine when telemetry feature is disabled
  • Works fine with global sourcegraph server regardless of telemetry feature activation

Error:

ApolloError: Unknown type "TelemetryEventInput".
Variable "$events" cannot be non-input type %!q(<nil>).
Cannot query field "telemetry" on type "Mutation".
Unknown type "TelemetryEventInput".

Variable "$events" cannot be non-input type %!q(<nil>).
Cannot query field "telemetry" on type "Mutation".
e:index.js:40:27

---
37:     // value or the constructed error will be meaningless.
38:     function ApolloError(_a) {
39:         var graphQLErrors = _a.graphQLErrors, protocolErrors = _a.protocolErrors, clientErrors = _a.clientErrors, networkError = _a.networkError, errorMessage = _a.errorMessage, extraInfo = _a.extraInfo

### Steps To Reproduce

1. Configure setup for self-hosted sourcegraph
2. `Search Code` with telemetry feature enabled

### Current Behaviour

_No response_

### Expected Behaviour

_No response_

samcho0608 avatar Jan 10 '25 15:01 samcho0608

Thank you for opening this issue!

🔔 @bobheadxi you might want to have a look.

💡 Author and Contributors commands

The author and contributors of bobheadxi/sourcegraph can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

raycastbot avatar Jan 10 '25 15:01 raycastbot

@samcho0608 thank you for the report - can you share the version of your Sourcegraph instance? It seems likely that you have an older Sourcegraph instance that doesn't support receiving telemetry.

In the meantime, please feel free to just disable the telemetry - it's entirely optional!

bobheadxi avatar Jan 10 '25 16:01 bobheadxi

@bobheadxi I think you're right! we're currently using v4.3.0 and is not up-to-date.

In the meantime, please feel free to just disable the telemetry - it's entirely optional!

Yup I've disabled it and it works just fine

samcho0608 avatar Jan 13 '25 03:01 samcho0608

I'll close this issue!

samcho0608 avatar Jan 13 '25 03:01 samcho0608