Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection timeout when connecting to smee under proxy #84

Closed
kshitij10496 opened this issue Nov 13, 2018 · 8 comments
Closed

Connection timeout when connecting to smee under proxy #84

kshitij10496 opened this issue Nov 13, 2018 · 8 comments
Labels

Comments

@kshitij10496
Copy link

I've been looking to try smee while developing a GitHub app.

$ smee -u https://smee.io/ufFwqO3nnPuM0B -p 8888                                                                                            
Forwarding https://smee.io/ufFwqO3nnPuM0B to http://127.0.0.1:8888/
Event {
  type: 'error',
  message: 'connect ETIMEDOUT xx.xx.xxx.xxx:xxx' }

Currently, I'm working behind a proxy server which I have set for the shell and npm.
This probably is causing the connection issue as I'm able to connect to smee when I'm not using the proxy server. How do I solve the connection timeout issue under proxy?

@ajschmidt8
Copy link

I'm also experiencing this issue. Hoping someone can shed some light!

@GitMylou
Copy link

GitMylou commented Feb 12, 2019

Hello,
I just had the same issue.
Looking at smee/index.js, the eventSource is built like that:
const events = new EventSource(this.source)

But according to eventSource documentation, it is possible to add proxy. "This is typically useful if you are behind a corporate firewall."

new EventSource(url, {proxy: 'http://your.proxy.com'});

https://github.com/EventSource/eventsource/blob/master/README.md

@JasonEtco
Copy link
Member

Thanks for that doc link @GitMylou - I think a --proxy option might be useful in smee-client. That'd go somewhere here:

https://github.com/probot/smee/blob/9dc32b0be76771a731f661fd39d6b5acdec1e3a4/client/bin/smee.js#L7-L13

And be passed down here:

https://github.com/probot/smee/blob/9dc32b0be76771a731f661fd39d6b5acdec1e3a4/client/index.js#L45

Anyone up for opening a PR? ❤️

This was referenced Mar 2, 2019
@stale
Copy link

stale bot commented May 13, 2019

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@stale stale bot added the wontfix label May 13, 2019
@Dancho80
Copy link

any progress with that PR to enable a client usage behind the proxy?
Currently, it's a show stopper for us to use this great project :(

@stale stale bot removed the wontfix label Jun 10, 2019
@stale
Copy link

stale bot commented Sep 8, 2019

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

@stale stale bot added the wontfix label Sep 8, 2019
@stale stale bot closed this as completed Oct 8, 2019
@pdpdvp
Copy link

pdpdvp commented Aug 17, 2020

Screen Shot 2020-08-17 at 9 48 44 AM

Im seeing this continuous timeout errors in the logs, my app internally makes api calls to Jira and Cruicble. Can anyone help me understanding what is the issue?

@mfaltas-sandia
Copy link

Hello,
I just had the same issue.
Looking at smee/index.js, the eventSource is built like that:
const events = new EventSource(this.source)

But according to eventSource documentation, it is possible to add proxy. "This is typically useful if you are behind a corporate firewall."

new EventSource(url, {proxy: 'http://your.proxy.com'});

https://github.com/EventSource/eventsource/blob/master/README.md

I have tried doing: const es = new EventSource(this.source, {proxy: 'http://your.proxy.com'});

and I end up getting "Bad Request" "Error 400" instead of the connection timeout errors. Any advice on what I can do to fix this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants