function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
David BrandejsDavid Brandejs 

Salesforce React integration throws error connection refused

Hi, I am using this sample app https://github.com/pozil/salesforce-react-integration to create a React app connected to Salesforce. 

I have created a Connected app inside my Salesforce, enabled OAuth and added a callback Uri that is identical to the one in the sample app. I have also replaced the consumer key and secret in the sample app for the ones in my SF Connected app, yet after entering and submitting my Salesforce login details, net::ERR_CONNECTION_REFUSED is still being thrown on the http://localhost:3000/auth/callback. I was advised that it might have something to do with connecting with older TLS version.
Best Answer chosen by David Brandejs
NagendraNagendra (Salesforce Developers) 
Hi David,

Sorry for this issue you are encountering.

Connection refused could be a few things. Have you considered Login IP ranges etc?

I would recommend reviewing all login and security configurations.

Also, please double check if you are connecting with TLS 1.1 or 1.2

Thanks,
Nagendra