Code Monkey home page Code Monkey logo

Comments (2)

ivarconr avatar ivarconr commented on June 10, 2024

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.

dmzoneill avatar dmzoneill commented on June 10, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.