diff --git a/src/http-api.js b/src/http-api.js index 7853ea18f..c0f221b59 100644 --- a/src/http-api.js +++ b/src/http-api.js @@ -389,6 +389,10 @@ module.exports.MatrixHttpApi.prototype = { prefix, accessToken, ) { + if (!this.opts.idBaseUrl) { + throw new Error("No ID Server Base URL set"); + } + const fullUri = this.opts.idBaseUrl + prefix + path; if (callback !== undefined && !utils.isFunction(callback)) {