GithubHelp home page GithubHelp logo

xiaooloong / lua-resty-eureka-client Goto Github PK

View Code? Open in Web Editor NEW
21.0 2.0 10.0 30 KB

A Netflix Eureka client for OpenResty/ngx_lua

Lua 100.00%
openresty nginx eureka spring-cloud lua-netflix-eureka

lua-resty-eureka-client's People

Contributors

xiaooloong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

lua-resty-eureka-client's Issues

Thanks for this repo. Not able to register to eureka.

Hi,

First of all, thanks for this repo.

This might be a very dumb issue as I am new to NGINX and lua.
So the issue is that I can talk to Eureka using this client as I can see it the logs but I can't register my app.

When I do this, I get Error Code: 401 - Unauthorized which is correct as I need to login.
w:run({ host = '127.0.0.1', port = 8761, uri = '/eureka/apps', timeval = 30, }, i:export())

So, I put in the admin username and password like you would do in cURL like this
w:run({ host = 'user:[email protected]', port = 8761, uri = '/eureka/apps', timeval = 30, }, i:export())

And i get this in the logs -

no resolver defined to resolve "user", context: ngx.timer

I have tried using 'user:password@localhost' in a similar NPM Eureka client for a node js application and it works.
But it seems like either NGINX or this library doesn't support colons inside the host or follows a specific format for the host.

Any help would be appreciated!

Thanks.
Prithwiraj

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.