diff --git a/src/http_api.c b/src/http_api.c index 58d51259c..ee138cac8 100644 --- a/src/http_api.c +++ b/src/http_api.c @@ -497,7 +497,7 @@ int http_api__start(struct mosquitto__listener *listener) int rc = getaddrinfo(bind_address, service, &hints, &ainfo); if(rc){ - log__printf(NULL, MOSQ_LOG_ERR, "Unable to start http api listener."); + log__printf(NULL, MOSQ_LOG_ERR, "Unable to start http api listener (%s).", strerror(errno)); mosquitto_FREE(x509_cert); mosquitto_FREE(x509_key); return MOSQ_ERR_ERRNO; diff --git a/test/broker/22-http-api-file.py b/test/broker/22-http-api-file.py index b8b595617..5109128f4 100755 --- a/test/broker/22-http-api-file.py +++ b/test/broker/22-http-api-file.py @@ -20,9 +20,9 @@ broker_config = BrokerConfig( ListenerConfig(port=mqtt_port), ListenerConfig( port=http_port, - address="127.0.01", + address="127.0.0.1", protocol="http_api", - http_dir=".", + http_dir=Path("."), ) ], allow_anonymous=True