Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Perl, PHP, Python & Ruby Development
- :
- username/Password authentication, {"error":"unknow...
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
username/P assword authentica tion, {"error":" unknown_er ror","erro r_descript ion":"retr y your request"}
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-17-2012 07:24 AM
I registered for a developer edition account to use the REST API for a project. I am not able to get the authentication done.
I get
{"error":"unknown_error","error_description":"retr
message. This happens only for the developer account. I tried the same authentication method on a professional (trial) and a group edition with success.
Below is the command i use. I made sure i am using the correct client_id/client_secret/password+securityToken
curl https://login.salesforce.com//services/oauth2/toke
Re: username/P assword authentica tion, {"error":" unknown_er ror","erro r_descr
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
11-07-2012 02:05 AM
I was having the same issue and couldn't find any answer for it.
I'm a newbie in salesforce so thought i'm missing something in the setup. Changed lots of parameters in my account but nothing helped.
Finally, tried to submit the request to ap1.salesforce.com (which is the domain I see after I login) and I got the correct response.
curl -v 'https://ap1.salesforce.com/services/oauth2/token' -d 'grant_type=password' -d 'client_id=[consumer_key]' -d 'client_secret=[consumer_secret]' -d 'username=[userrname]' -d 'password=[password+token]'
Hope this is the only change needed and not one of the million other settings I played with
Re: username/P assword authentica tion, {"error":" unknown_er ror","erro r_descr
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
12-20-2012 10:52 AM
@ednap: Your post helped me a great deal. When I logged into the salesforce.com through the browser I was sent to the domain ns14.salesforce.com and I used that domain with my curl request and received the authenticated json response. I wonder if this issue has something to do with the connected app being in the pending state and the updates not being reflected across all the domains.

