nats-io / nats.ts

TypeScript Node.js client for NATS, the cloud native messaging system
https://www.nats.io
Apache License 2.0
178 stars 13 forks source link

Connect with username and password in the url not working #24

Closed deini closed 5 years ago

deini commented 5 years ago

Looks like using username and password in the url isn't working:

// Connect with username and password in the url
let nc6 = await connect({url: 'nats://me:secret@127.0.0.1:4222'});

Crashes with AUTHORIZATION_VIOLATION, however, using same credentials but passing them as user and pass does work.

aricart commented 5 years ago

I cannot reproduce the issue, I added a test to verify it is working correctly.

mlaggner commented 5 years ago

some problem here.. maybe you can reproduce it with the following nats url:

nats://public:thenewalbiondata@www.albion-online-data.com:4222