Error: Error calling method on NPObject.

125 views
Skip to first unread message

Leonard Camacho

unread,
May 10, 2016, 8:23:28 PM5/10/16
to Temasys WebRTC Plugin
Hi,

I just updated to latest version of plugin and AdapterJS and I get this weird error, a previos version was working with this code.

Error: Error calling method on NPObject.

According to console this line is where error happens on adapter.min.js

return iceServers && (servers.iceServers = iceServers), AdapterJS.WebRTCPlugin.plugin.PeerConnection(servers);

And this is where it fails on my code

pc = new RTCPeerConnection(configuration);

configuration is an object with an array of IceServers

{username: undefined, credential: undefined, url: "stun:stun2.l.google.com:19302", urls: ["stun:stun2.l.google.com:19302"], hasCredentials: false}
{username: undefined, credential: undefined, url: "stun:stun.voiparound.com", urls: ["stun:stun.voiparound.com"], hasCredentials: false}


Jacques-Olivier Haché

unread,
May 10, 2016, 10:38:10 PM5/10/16
to Temasys WebRTC Plugin
Please remove the undefined values (username and credential)
This is a bug of 0.8.870, fixed internally, will be release very soon.

Leonard Camacho

unread,
May 28, 2016, 8:24:07 PM5/28/16
to Temasys WebRTC Plugin
Hi Jacques,

Thanks. Do you know when is going to be released?

Jacques-Olivier Haché

unread,
May 29, 2016, 9:59:33 PM5/29/16
to Temasys WebRTC Plugin
Most likely within the next two weeks.
We are doing some heavy lifting on another project at the moment. If we close that earlier than expected, then the plugin release will follow.

Elvis

unread,
Jun 21, 2016, 8:59:46 AM6/21/16
to Temasys WebRTC Plugin
Good afternoon Mr. Jacques-Olivier Hache,

Since the plugin updated automatically to latest version 0.8.870 it is not working Safari (gives error: Error: Error calling method on NPObject.) and on windows IE gives a similar error, with mismatched parameter type.

The plugin was working with the same code since version 0.8.635 and last update broke the plugin completely (it worked since 2015).

Can you please release urgently the fix for it because nobody can use this plugin, and this 
serious mistake creates a very bad image of Temasys company because there are ore than 50 days since the plugin it is not working for everybody and was not released any fix for this bug. 

Thank you.

Jacques-Olivier Haché

unread,
Jun 22, 2016, 7:50:31 AM6/22/16
to Temasys WebRTC Plugin
Hi,

Can you be a little bit more precise on what your issue is ?
Either a code sample or a live webapp.

The official Temasys samples work fine as well as I can tell:

Regards,
J-O

Jacques-Olivier Haché

unread,
Jun 22, 2016, 7:54:24 AM6/22/16
to Temasys WebRTC Plugin
Ooops, looks like I answered a bit fast.
If your issue is the same as Leonards, the fix was still not released in the free plugin.

Note however, that I provided a JS solution in my first answer : "Please remove the undefined values (username and credential)"

Webrtc Dev

unread,
Jun 22, 2016, 7:54:29 AM6/22/16
to Temasys WebRTC Plugin
The issue is caused if username or credential is undefined and hasCredentials is false.

Webrtc Dev

unread,
Jun 22, 2016, 7:59:41 AM6/22/16
to Temasys WebRTC Plugin
Can you please release an update that fixes this issue ? 
It is normal to have the values undefined if hasCredentials is false. 

Your plugin is not working for almost 2 months and it gives this error for everybody, and it worked before you creted this issue 2 months ago and was not fixed for such a long time....

Jacques-Olivier Haché

unread,
Jun 27, 2016, 9:43:42 PM6/27/16
to Temasys WebRTC Plugin
Hey, 
We made a new release yesterday, it should fix your issue.

Webrtc Dev

unread,
Jun 28, 2016, 6:33:58 AM6/28/16
to Temasys WebRTC Plugin
Finally the errors are fixed. We waited 2 months without an working version.
Please be more careful next time ...
Reply all
Reply to author
Forward
0 new messages