smee-client icon indicating copy to clipboard operation
smee-client copied to clipboard

Error 400, Bad Request when operating SMEE client behind corporate firewall proxy

Open mfaltas-sandia opened this issue 4 years ago • 2 comments

Hello Everybody,

I am trying to operate SMEE on a server behind a proxy and I was getting connection timeout errors when I intput the following:

smee -u SMEE-link  -p 8080

I saw on https://github.com/probot/smee-client/issues/84 a reference to https://github.com/EventSource/eventsource/blob/master/README.md that says:

image

I tried to do that but I get bad request errors:

Event { type: 'error', status: 400, message: 'Bad Request' }

Any advice on what I can do to fix this?

Thank you!

mfaltas-sandia avatar Oct 14 '20 17:10 mfaltas-sandia

Enabling the proxy like this works for me, thanks for the tip!

Could it be that the 400 reply comes from your Jenkins instance?

danielsteinmann avatar Mar 10 '21 10:03 danielsteinmann

In file smee-client/index.js:

const events = new EventSource(this.source, {proxy:'http:// :'});

On Thu, Apr 15, 2021 at 12:03 PM Erion Sina @.***> wrote:

where exactly do we need to add the proxy line, in which file?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/probot/smee-client/issues/158#issuecomment-820300983, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXVOOIPCIKOYULOWQIHQ63TI22VNANCNFSM4SQ5NIUA .

danielsteinmann avatar Apr 20 '21 12:04 danielsteinmann