Invalid request format error when saving nodes

wonder95 - April 16, 2009 - 20:39
Project:Calais
Version:6.x-3.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

I'm using the OpenPublish distro that has OpenCalais installed, and on saving nodes different times (either by themselves or as part of views bulk operations, etc.), I get the following error:

Calais processing error: Invalid request format - the request has missing or invalid parameters

Thanks.

#1

febbraro - April 17, 2009 - 09:19

Does this consistently happen, or just randomly?

The only way to get to the bottom of this if to go into includes/Calais.inc inside the analyze function and near the top, put this debugging in..

    $data    = array(
      'licenseID' => variable_get('calais_api_key', NULL),
      'content' => $content,
      'paramsXML' => $this->build_xml_params(),
    );

    $data_enc = http_build_query($data, '', '&');

    // Add this to see what is in an invalid format
    print "<pre>";
    print_r($data);
    print_r($data_enc);
    print "</pre>";

Also, have you specified your Calais API key in the configuration settings?

 
 

Drupal is a registered trademark of Dries Buytaert.