• DougFriedman
  • NEWBIE
  • 25 Points
  • Member since 2012

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 8
    Replies

Please see the following thread from the Faye google group.  (http://faye.jcoglan.com for more info on Faye).  Any suggestions on how to debug a 500 Server Error when connecting with a server-side Bayeux client and OAuth token?  If the issue was authentication, or a bad request, shouldn't we be getting a 400 error?

 

https://groups.google.com/forum/?fromgroups#!topic/faye-users/SaEiojGQx3w

 

Thanks

Doug

I have the following Apex REST class and I'm getting the following error when calling it via the API.  The query runs fine in the console, and the error dissapears when I remove the query from the class.   My ultimate goal is to email a Knowledge Article Attachment Ideas?

 

Class: 

 

@RestResource(urlMapping='/attach/*')
global with sharing class SendAttach {
 @HttpGet
    global static String doGet() {
        RestRequest req = RestContext.request;
        RestResponse res = RestContext.response;
        
        List<XXXXXXX__kav> myArticles = [SELECT Id, Article_Attachment__Body__s FROM XXXXX__kav WHERE Id = 'testHardCodedIdGoesHere'];
        
        return 'true';
    }

 

}

 

Error:

 

An unexpected error occurred. Please include this ErrorId if you contact support: 67049153-20127 (1467520363)

Hi,

 

I'm new to development with Salesforce. I've developed Web applications for 15 years, having done both backends and frontends, recently with Ruby on Rails.

 

At my current position, I'm working with a boss who has strong connections with Salesforce, so naturally, he wants our new Web app to ditch PostgreSQL and exclusively use Database.com instead, not just have two databases sync with each other.

 

After some reading last weekend, I stumbled upon an old gem that no longer has active support (but is still maintained in some forks on GitHub), that is applied on top of Active Record. This sound ideal, but I'm worried about the lack of central support for its development and maintenance.

 

I also noticed Heroku's "databasecom" and "databasecom-rails" gems, which completely discards Active Record, and tries to take its place. I'm glad to find software that is actively maintained.

 

However, the first sight of discarding the well-built and proved Active Record sounds completely idiotic.

 

How do you handle validation? How can you add methods to your models? How can you write automated tests for your models (with RSpec) and features (with Capybara)? There are many questions, along with many potential problems, that come to mind.

 

So far, the answers I get are rare, and they're not satisfactory. The first come that I heard, about validation, is "you simply just do it all client-side". You mean I just let everyone with JavaScript turned off put whatever they want in our database?

 

Is there something I'm not getting? Up to this point, I've yet to stumble upon documentation or examples that will shed light on my lack of knowledge of Salesforce. If you have anything that can show me the way, it would be appreciated.

 

Thank you in advance.

Please see the following thread from the Faye google group.  (http://faye.jcoglan.com for more info on Faye).  Any suggestions on how to debug a 500 Server Error when connecting with a server-side Bayeux client and OAuth token?  If the issue was authentication, or a bad request, shouldn't we be getting a 400 error?

 

https://groups.google.com/forum/?fromgroups#!topic/faye-users/SaEiojGQx3w

 

Thanks

Doug

I trying to build app on rails that connect to salesforce
I follow up this link

 

http://wiki.developerforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_Ruby

 

but the app wont work
it give me this error on the page

 

Routing Error

uninitialized constant Salesforce::MerchandiseCsController

Try running rake routes for more information on available routes.

 

anyone can help please

I have the following Apex REST class and I'm getting the following error when calling it via the API.  The query runs fine in the console, and the error dissapears when I remove the query from the class.   My ultimate goal is to email a Knowledge Article Attachment Ideas?

 

Class: 

 

@RestResource(urlMapping='/attach/*')
global with sharing class SendAttach {
 @HttpGet
    global static String doGet() {
        RestRequest req = RestContext.request;
        RestResponse res = RestContext.response;
        
        List<XXXXXXX__kav> myArticles = [SELECT Id, Article_Attachment__Body__s FROM XXXXX__kav WHERE Id = 'testHardCodedIdGoesHere'];
        
        return 'true';
    }

 

}

 

Error:

 

An unexpected error occurred. Please include this ErrorId if you contact support: 67049153-20127 (1467520363)