https://www.growthbook.io/ logo
#ask-questions
Title
# ask-questions
b

blue-hair-70812

11/06/2023, 4:17 PM
could some one shed some light on an error im getting when trying to set up the proxy - I have it setup and connected, but when I try and
re-check
from the growthbook UI, I get back `
Copy code
{
  "status": 200,
  "healthy": true
}
but it still returns an error of
Error: [proxyVersion] Required
I get a 200 success back with this request as well 🤷 . I tried searching the docs and the repos for where this error comes from, but im not as familiar with the codebase to tell. Can anyone enlighten me as to where the
proxyVersion
should be set?
r

rhythmic-agent-34208

11/06/2023, 4:17 PM
@blue-hair-70812 has opened an issue Close Issue button
b

brief-honey-45610

11/06/2023, 4:18 PM
Hi Travis, I’ll sync with our engineers who work on the proxy and get back to you!
b

blue-hair-70812

11/06/2023, 4:18 PM
thanks!
b

brief-honey-45610

11/06/2023, 5:20 PM
Hi Travis, I forgot to ask-- Are you using the cloud-hosted or self-hosted version? Which SDK are you using?
b

blue-hair-70812

11/06/2023, 5:21 PM
self-hosted. sdk is javascript
👍🏻 1
b

brief-honey-45610

11/06/2023, 9:50 PM
Hi Travis, I'm troubleshooting this with one of our engineers. Are you getting the error only when clicking "re-check", or when trying to actually run the proxy If you could send some more details about what this is blocking, and maybe a screenshot or two, that would help us a lot!
b

blue-hair-70812

11/06/2023, 9:52 PM
i am getting the error when "rechecking":
our blocker is my user is reporting that streaming updates aren't working. the UI says that they are enabled - but when they use our instance they report the streaming never starting.
r

rhythmic-agent-34208

11/06/2023, 9:55 PM
Ahh OK! If the proxy's ​`/healthcheck`​ endpoint returns a ​`proxyVersion: undefined`​ this can happen. And it would be undefined perhaps if using a configuration where the ​`package.json`​ is unavailable for parsing; possibly a docker-specific bug. But it should not affect anything; it doesn't mean anything is actually broken other than the healthcheck itself (which is diagnostic only).
Oops, we were posting at the same time. Let me read your message about streaming...
If the streaming is broken, that's a separate issue from the healthcheck topic. To determine if the streaming is broken, we'd need to look at: 1. The SDK integration details, and 2. Request/response/eventstream on the ​`/sub`​ endpoint in the browser. Would you be able to send screenshots of those?
b

blue-hair-70812

11/06/2023, 10:03 PM
quick question before i try and gather that - for the eventstreaming - does this happen through a websocket?
b

brief-honey-45610

11/06/2023, 10:05 PM
Let me confirm, just a moment
b

blue-hair-70812

11/06/2023, 10:06 PM
FYI - we are running inside Kubernetes and i just want to verify that our ingress doesn't need some special configuration outside of the normal HTTP proxying - This error could just be from a misconfig on my end 😥
r

rhythmic-agent-34208

11/06/2023, 10:08 PM
Ahh OK, no worries! Event streaming happens via Server-Sent Events (SSE) and not websockets. Here's the relevant part from the JavaScript SDK docs: https://docs.growthbook.io/lib/js#streaming-updates
My colleague says tt's unlikely there's anything special needed for k8s ingress.
👍 1
b

brief-honey-45610

11/06/2023, 10:10 PM
It's*
r

rhythmic-agent-34208

11/08/2023, 7:40 PM
Hi Travis, is there anything else we can help with on this topic?
3 Views