500 error upon sending callback request

(Henri Reydon) #1

Hello everyone,
So I’m want to use discourse on my private server with an oauth2 login.

I’ve installed and set up everything. All is fine, exept one thing.

When my API send the discourse’s callback request, I get a 500 error. In my logs, I only get this message :

Faraday::ConnectionFailed (Failed to open TCP connection to myapiadress.com.fr:443 (Connection refused - connect(2) for “myapiadress.com” port 443))
/usr/local/lib/ruby/2.5.0/net/http.rb:939:in `rescue in block in connect’

So I’ve searched and worked since hours to correct this bug with no result. After reading this topic, it seems like I’m the only person having this issue.

More informations :

  • My discourse installation is on an archlinux server and works natively (no apache or nginx installation behind or proxys)
  • My API server is also on archlinux and works fine for my others clients.

Also, when I try a curl request from docker, my request is refused too.

OAuth2 Basic Support
(Bhanu Sharma) #2

Port 443 = HTTPS … First thing I’d be looking at is that.