• rourou512
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
I am trying to make connection with Live Agent Rest API but some how my headers are not getting set.

In the browser console I see the request is going out but when I try to see the request header its missing these two headers instead I only see these under Access-Control-Request-Headers:x-liveagent-affinity, x-liveagent-api-version

Error: Status Code: 400 Bad Request

Any thought?
$.ajax({
     url:"https://zzzzzzz.salesforceliveagent.com/chat/rest/System/SessionId",
     dataType: 'json', 
     Accept : "text/plain; charset=utf-8",
     type: 'GET',
     contentType: 'application/x-www-form-urlencoded',
      headers: {
      'X-LIVEAGENT-API-VERSION': '30',
      'X-LIVEAGENT-AFFINITY': 'null'
     },
     success:function(json){

         alert("Success");
     },
     error:function(textStatus ){
         console.log(textStatus );
         alert("Error"+textStatus );
     }      
});

 
  • November 28, 2014
  • Like
  • 0

Hi,

 

Unable to fetch and save Force.com Components to Project: com.salesforce.ide.api.metadata.types.Metadata$JaxAccessorF_fullName cannot be cast to com.sun.xm.internal.bind.v2.runtime.reflect.Accessor

 

Abort or Continute Force.com project creation?

==============

while i am creating a new force.com project i got this error: can u please tell me why this error came. i downloaded eclipse and added force.com ide.... when i try to creating a new force.com project i got this error... and i am able to create a force.com project but not getting all existing classes and pages. And not added my new page or class content to the sever when i save. Is it required any other software installations?