• Ryan Boos
  • 5 Points
  • Member since 2015

  • Chatter
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
  • 2
I properly installed CLI. In a command window, I enter:

sfdx force:auth:web:login -d -a DevHub

in order to log in to the trial Dev Hub that I created. The aforementioned command opens the Salesforce login page in the web browser, so I log in using my Developer Hub Trial Org credentials and click Allow. After that, web browser show me an error: "This site can't be reached. localhost took too long to respond".

This is the URL that Salesforce use after I authenticate in the browser: http://localhost:1717/OauthRedirect?code=aPrxbOND3gL_2LbSR7rKPdvD0XBVk2YpErl3pphY2f3xvZ1wf5SSPJByDleRLPMtzCQWnNGAdg%3D%3D&state=f2f8254fac23

I don't know what happen.

User-added image

User-added image

User-added image
I am Java/Apex rookie and I am trying to strip cr/lf characters from a string using the ReplaceAll method.  c.ReplaceAll('\r\n','') doesn't work I guess because '\r\n' isn't a regExp.  I'm sure there's a simple solution but I haven't found it yet.  Can anyone offer some help?

Message Edited by CMcCaul on 09-17-2008 11:45 AM
  • September 17, 2008
  • Like
  • 0