xiaooloong / lua-resty-eureka-client Goto Github PK
View Code? Open in Web Editor NEWA Netflix Eureka client for OpenResty/ngx_lua
A Netflix Eureka client for OpenResty/ngx_lua
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.