Iām currently trying out mosquitto and wanted to test it using postman. Connecting works fine, subscribing works fine, but when I tried to publish, I got this error.
Unable to publish message: Cannot read properties of undefined (reading ātoStringā)
Iām currently using v11.1.14 of Postman on Windows 10.
Iām hosting mosquitto on a ācloudā server that we have.
I was just going to send a plain text and it was already failing. Then I tried something that looks like a JSON string, and it also failed.
Are you trying to send any properties along when you publish? Iām having a bit of an issue trying to reproduce the issue on my end. Could you share a version of the request youāre trying to send?
Hi, I was just sending some random text with and without a double quote. Iām not sending any property as I donāt know how to do that. Also, I was triggering a publish using the mosquitto cli straight from the server, so I guess that made it āeffortlessā for that step, but not the other way around. I also made mosquitto allow anonymous connections for easy testing. This is the tutorial I followed to do the initial setup of mosquitto. Installing Mosquitto broker on Debian | by Ross Anderson | Medium