https://www.growthbook.io/ logo
#announcements
Title
# announcements
b

broad-forest-25518

04/03/2023, 11:31 AM
Hi there, good monday! How are you? I'm experiencing an issue with my dev environment, using growthbook feature flags. In my local environment, everything works as expected: growthbook loads correctly, feature flags are read as expected and its values changed whenever I change them on the dashboard. The problem is when I use my dev environment: growthbook loads correctly (this means that the connections is successful), but feature flag values are always
null
. I've already tested changing the connection SDK, but it happens the same. How can I proceed in this case? Let me know if I can give further details. To give further information, I'm running the back-end on GCP, and I can't establish new SDK connections from there, but I can do them from my local environment. I'm receiving this in
req.growthbook
object:
_trackedFeatures: { 'blinded-users': 'null' },
The issue was solved by changing the
fetch: require("cross-fetch"),
line in the
setPolyfills
function to the import approach at the beginning of the file:
import { fetch } from 'cross-fetch'
f

fresh-football-47124

04/03/2023, 2:40 PM
oh interesting
were you getting an error?
logged?
b

broad-forest-25518

04/03/2023, 3:17 PM
Hey Graham! Thanks for the reply. I was not getting errors. In fact, Growthbook sent "connection successful" message, but was not connected in the SDK page. Also, I was always receiving
null
in the feature flags
But there was no error message
f

fresh-football-47124

04/03/2023, 3:30 PM
I wonder if we should do a PR for this?
b

broad-forest-25518

04/03/2023, 3:44 PM
Not sure. It seems that the issue was only happening on deployments, because the local environment was working as expected. We needed to add the
setPolyfills
function, but also change the way to import
fetch
from
cross-fetch
package. But I was not getting a clear error message
8 Views