question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Call never reaches callee

See original GitHub issue

Callee never notices that there’s a call for them.

Caller watches spinner forever.

Which jsxc version number do you use?

git master eeab8355e54582cf610f9091160f8c951faf6bfb

I have updated from git several times in last few weeks, so this seems to be constant state of affairs.

In which system do you use jsxc? (e.g. owncloud, sogo, …)

example login page

Can you reproduce your issue? If yes, how?

See below

Which browser and browser version do you use?

Google Chrome Version 57.0.2987.13 dev (64-bit)

Same with Firefox 51.0 (64-bit)

Do you have any browser plugins enabled?

In Chrome, no.

Do you see any errors in your javascript console?

jsxc.dep.js:4809 POST https://dev.decent.im/http-bind/ 504 (Gateway Time-out)

Setup:

I run my own XMPP server (dev.decent.im) based on Prosody from upstream hg trunk (changeset 7909:428d4abee723 of Feb 20 at the moment). mod_bosh is enabled, nginx forwards BOSH connections to https 5281 port as follows (conforming to JSXC recommendations):

location /http-bind {
	proxy_pass  https://localhost:5281/http-bind;
	proxy_set_header Host $host;
	proxy_buffering off;
	tcp_nodelay on;
}

I open two Chrome sessions: one regular and one incognito. In both, I navigate to https://dev.decent.im/jsxc/example/ , set XMPP server to dev.decent.im and BOSH URL to /http-bind/ , and log in using Box Login widget (others don’t work as they produce POST request to login.html which is static page).

I log in as users andrey.utkin@dev.decent.im and andrey.utkin.2@dev.decent.im . They have each other in roster and can message each other. When I make call between them, it never passes. I have read the note that JSXC’s default STUN server, stunprotocol.net, has banned Russia and Ukraine, but I’m in the UK at the moment. From chrome://webrtc-internals it seems like STUN processing accomplishes, however I am ready to provide more info on that on request.

I suspect there may be something wrong with XMPP connection via HTTP proxied by nginx. See combined logs in jsxc_call.log, and browser console logs in caller.js_log and callee.js_log .

Note these messages - probably that is what’s wrong, but I have no idea what to do about that.

==> /var/log/nginx/dev.decent.im.error_log <==
2017/02/27 23:16:00 [warn] 31562#0: *1015 upstream server temporarily disabled while reading response header from upstream, client: 188.221.179.100, server: dev.decent.im, request: "POST /http-bind/ HTTP/1.1", upstream: "https://[::1]:5281/http-bind/", host: "dev.decent.im", referrer: "https://dev.decent.im/jsxc/example/"
2017/02/27 23:16:00 [error] 31562#0: *1015 upstream timed out (110: Connection timed out) while reading response header from upstream, client: 188.221.179.100, server: dev.decent.im, request: "POST /http-bind/ HTTP/1.1", upstream: "https://[::1]:5281/http-bind/", host: "dev.decent.im", referrer: "https://dev.decent.im/jsxc/example/"

In clients’ browser console, I see such messages:

jsxc.dep.js:4809 POST https://dev.decent.im/http-bind/ 504 (Gateway Time-out)

still it seems the clients are somewhat resilient to these errors, as later buddies presence updates happen and are logged to console.

Thanks in advance for any help with this.

Also, a quick question - is mailing list actually a thing? I’ve subscribed to it only to see that archive is empty, which discouraged me from posting there.

jsxc_call.log.txt callee.js_log.txt caller.js_log.txt

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:23 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
andrey-utkincommented, Sep 3, 2017

It indeed works now with latest master. Thanks again!

0reactions
andrey-utkincommented, Aug 25, 2017

Thanks for heads up, will test soon.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Call Options: What They Are and How They Work - NerdWallet
In this example, the call buyer never loses more than $500 no matter how low the stock falls. For the stockholder, if the...
Read more >
Call Options In the Money: Overview, Advantages, and Example
A call option is in the money when the underlying stock price is above the strike price. Learn here about the advantages of...
Read more >
Completion block never gets called? - Stack Overflow
I believe you need to call the completion() at the end for it execute your completion code. func appendAllData (completion: () -> Void) ......
Read more >
What should I do if I get a call claiming there's a ... - SSA FAQs
Generally, we will only contact you if you have requested a call or have ongoing business with us, but we will never: Threaten...
Read more >
If you tested positive and the contact tracer never called ... - NPR
Many public health experts insist that contact tracing for COVID-19 remains valuable, even if it must now prioritize who to reach and how...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found