omniphx / forrest

A Laravel library for Salesforce
https://omniphx.github.io/forrest/
MIT License
259 stars 120 forks source link

SF Login ok via Command but not from Controller #309

Open sospcie opened 2 years ago

sospcie commented 2 years ago

Hi,

I have many command file in my project, and all working perfectly to login to SF.

However, if I try to connect to SF from a Controller, the connection is refused.

GuzzleHttp\Exception\ConnectException cURL error 7: Failed connect to login.salesforce.com:443; Connection refused (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) for https://login.salesforce.com/services/oauth2/token

Does anyone can help me out with this?