Comments (2)
The error message tells you that the Unleash Proxy was not able to connect to the Unleash API, the API key was not accepted (thus a 401)
The API token looks a bit strange as it follows the old syntax. Which version of unleash-server are you running?
Can you please validate the api enpoint with a simple curl command:
curl http://192.168.122.195:4242/api/client/features -H "Authorization: 728934fd84bb7926ecd5367602fe5efc3550c66778b210d978576254"
from unleash-proxy.
hey thanks,
i dropped the extra stuff at the start of the token. i presumed it was superfluous.
The format as you said, was the older format? adding in the '..' before the token has resolved it.
docker run -e UNLEASH_PROXY_SECRETS=some-secret -e UNLEASH_URL=http://192.168.122.195:4242/api/ -e UNLEASH_API_TOKEN=:.6f5282f4683ff2c3c628db0fe629312e273a92fecf49c824ae4c092e -p 3000:3000 unleashorg/unleash-proxy
Unleash-proxy is listening on port 3000!
working now
curl http://192.168.122.195:4242/api/client/features -H "Authorization: :.6f5282f4683ff2c3c628db0fe629312e273a92fecf49c824ae4c092e"
{"version":2,"features":[],"query":null}
from unleash-proxy.
Related Issues (20)
- Support for refresh interval jitter HOT 9
- Pass `req` to context enrichers HOT 6
- Connecting to gitlab ERROR: Error: Unleash Repository error: Response was not statusCode 2XX, but was 401 HOT 1
- The Proxy API returns all feature toggles, even those from projects that are disabled for the requested environment HOT 4
- use `logger.debug` in `getAllToggles` HOT 3
- OpenAPI gets broken when using PROXY_BASE_PATH HOT 1
- Unleash Proxy does not return Feature flags for dev environment HOT 4
- Add option to expose metrics via prometheus endpoint HOT 3
- Server side token config no long working in latest version v0.16.3 HOT 3
- CORS_ORIGIN doesn't support a comma separated value contrary to what's stated in the docs HOT 1
- Types declarations missing in package HOT 1
- Custom SSL/TLS certificates in Docker image HOT 5
- Unable to Launch on Node 12 HOT 3
- `proxyBasePath` requires leading slash to work correctly HOT 2
- Unexpected behavior when isEnabled in Custom Strategy definition has an exception thrown HOT 4
- CORS Configuration does not apply for 304 refresh requests HOT 4
- Disable prometheus endpoint HOT 4
- Return disabled toggles as well on the proxy endpoint HOT 27
- Problem Running on AWS Lambda HOT 17
- Allow configuring the value for httpOptions.rejectUnauthorized via Environment variables HOT 6
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 unleash-proxy.