(UPNP beginner) Error 404 question

Chris.G

Member
Joined
Apr 25, 2024
Messages
12
I am still quite a beginner when it comes to UPNP and am writing a smart home (homey) integration/app and have encountered the following problem.
The WIIM device is found via mDNS and now I'm trying to register the events via UPNP, but now I get the following 404 error message.

My code:

const UPNP = require('upnp-device-client');


this.#upnpClient = new UPNP(`http://[WIIM-IP]:49152/upnp`);
this.#upnpClient.callAction('AVTransport', 'GetMediaInfo', { InstanceID: 0 }, (err, result) => {
this.logDebug(`callAction: ${err || result}`)
})
What is wrong here?

Or even better does someone have a working example in JavaScript ?
 
NOPE, When I try it with "HTTPS" I get the following error message:

>> Protocol "https:" not supported. Expected "http:"
 
Back
Top