Comments (5)
Hi @thomaspoignant , I try to fix it, but I've found a bug in local, when I set yaml in the local:
listen: 1031
pollingInterval: 1000
startWithRetrieverError: false
retriever:
kind: http
url: https://raw.githubusercontent.com/thomaspoignant/go-feature-flag/main/examples/retriever_file/flags.goff.yaml
retrievers:
- kind: file
path: examples/retriever_file/flags.goff.yaml
- kind: file
path: examples/retriever_file/flags.goff.yaml
exporter:
kind: log
enableSwagger: true
authorizedKeys:
evaluation:
- apikey1 # owner: userID1
- apikey2 # owner: userID2
admin:
- apikey3
the retrievers
of config can't load from the yaml file.
from go-feature-flag.
@luanxuechao from your example I see an indentation issue in your file on the providers.
Can you try this one instead?
listen: 1031
pollingInterval: 1000
startWithRetrieverError: false
retriever:
kind: http
url: https://raw.githubusercontent.com/thomaspoignant/go-feature-flag/main/examples/retriever_file/flags.goff.yaml
retrievers:
- kind: file
path: examples/retriever_file/flags.goff.yaml
- kind: file
path: examples/retriever_file/flags.goff.yaml
exporter:
kind: log
enableSwagger: true
authorizedKeys:
evaluation:
- apikey1 # owner: userID1
- apikey2 # owner: userID2
admin:
- apikey3
Can you double check if this will solve your issue?
from go-feature-flag.
Hi @thomaspoignant, it doesn't work. I run the relayproxy/main.go with goff-proxy.yaml
, and debug it. I'm new developer of golang. I also can reproduce it with json
config. go version is: go version go1.22.3 darwin/arm64
from go-feature-flag.
@luanxuechao I've tried the same file as you and I don't reproduce.
What I have done:
- copy/paste the file (the one edited by myself in the previous comment) in the root directory of go-feature-flag.
- Start the relay-proxy in IntelliJ (inside
cmd/relay-proxy/main.go
). - Add a debugger point at this line:
go-feature-flag/cmd/relayproxy/main.go
Line 96 in c982515
- Here is the output I got:
from go-feature-flag.
@luanxuechao if you want you can also join the slack channel https://gofeatureflag.org/slack and we can discuss about your issue there.
from go-feature-flag.
Related Issues (20)
- (bug) AwsConfig ignored as of s3Retrieverv2 refactoring HOT 3
- (change) Use slog in the go module HOT 2
- (feature) <PHP provider> HOT 3
- (feature) Add an option to not retrieve flag values on weekend or dev environment to reduce carbon footprint HOT 9
- 👀 Open pull request on open feature contrib repositories HOT 24
- (bug) OFREP error should contain flag key
- Did 1.26.0 release get re-tagged? HOT 2
- (bug) flaky test - Test_websocket_flag_change HOT 3
- Default value when there is no feature flags in the cache HOT 2
- K8S Relay proxy config templating
- (change) Allow templating in relaxyproxy.config helm chart values HOT 1
- (feature) Force call to the retrievers
- (feature) Integration with Datadog RUM HOT 2
- (bug) targetingKey does not work in the query of targeting rule using OFREP HOT 6
- (doc) Describe evaluation context HOT 2
- (change) Propose updating the base image of relay proxy to Debian 12 (bookworm) HOT 2
- (feature) Github Retriever check rate limiting
- (change) Github retriever add Github response header in the error.
- (change) Change cache in openfeature java provider
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-feature-flag.