Comments (5)
I'll try to replicate it and fix it.
from comqtt.
Let me look at the contents of auth-mysql.yml.
from comqtt.
I don't have the file which failed any more but it should be easy to replicate. Simply change one of the field names in a working configuration to a non-existent field name.
The issue is that Preparex() can fail (there's probably lots of ways it could fail other than invalid fields) but as there is no error checking at that point a.authStmt is left as nil, and then later there's an attempt to call (nil).QueryRowx(key)
from comqtt.
Is the program running properly now?
from comqtt.
I'm running a heavily modified version to suit my application (for example I needed different MySQL schema details for different ports, and I've added PBKDF2 handling so that I can mimic/replicate the way Mosquitto's Go Auth package works).
But when I tested previously the code ran fine once I set the field names correctly. But a panic isn't the best way to report a user configuration issue!
from comqtt.
Related Issues (20)
- Goleak failing
- Running the cluster without doing changes causes unclean shutdown HOT 3
- Use of Init to launch http server. HOT 3
- 跨节点数据同步消息同步丢数据,并且大概率会导致服务阻塞后续的pub无法同步到其他节点 HOT 3
- Use custom logger HOT 1
- Config file single.yml doesn't allow for auth config
- Disconnecting while Kafka bridge turned on causes a panic HOT 1
- Enable "hacktoberfest" contributions? HOT 4
- Dropping messages in OnPublish HOT 1
- mqtt.options配置加载不正确
- 问题咨询 HOT 1
- Authenticating against a MongoDB collection with Bcrypt-hashed passwords
- Missing OnPublishedWithSharedFilters in debug hook
- comqtt:cl gateways are missing HOT 4
- 请问可以不redis使用吗? HOT 1
- queue/retry messages to Kafka HOT 3
- 如何获取连接的客户端列表呢 HOT 1
- Redis: Usage of old go-redis package, before go-redis received official support by Redis HOT 1
- Cannot receive/send any message when acl is configured
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 comqtt.