Fatal error: Uncaught exception 'Exception' with message 'Error making API call.' in .../sites/all/modules/tagging/modules/tagging_alchemy_suggest/AlchemyAPI.php:509 Stack trace: #0 .../sites/all/modules/tagging/modules/tagging_alchemy_suggest/AlchemyAPI.php(478): AlchemyAPI->DoRequest('http://access.a...', Resource id #195, 'xml') #1 .../sites/all/modules/tagging/modules/tagging_alchemy_suggest/AlchemyAPI.php(72): AlchemyAPI->POST('HTMLGetRankedNa...', 'html', Object(AlchemyAPI_NamedEntityParams)) #2 .../sites/all/modules/tagging/modules/tagging_alchemy_suggest/tagging_alchemy_suggest.module(24): AlchemyAPI->HTMLGetRankedNamedEntities('<p>One of the m...', 'http://www.alch...') #3 [internal function]: tagging_alchemy_suggest_tagging_suggestions(1, Object(stdClass)) #4 .../mysite.com/html in .../sites/all/modules/tagging/modules/tagging_alchemy_suggest/AlchemyAPI.php on line 509

Some pieces of content throw this exception, making it impossible to edit them. Not sure what the cause is, though. It would be nice if it would load the page and just give a drupal message, rather than WSODing.

Comments

eugenmayer’s picture

Category: bug » task
Priority: Normal » Major

As its affecting the submodule, i mark it as a task.

Seems like its a timeout or anything, lets say whats the author says.

unnikrishnan’s picture

I am also facing the same problem . Following are the PHP back trace message that I got.

Fatal error: Uncaught exception 'Exception' with message 'Error making API call.
Array
(
[0] => Array
(
[file] =>
modules/alchemy/AlchemyAPI/module/AlchemyAPI.php
[line] => 530
[function] => DoRequest
[class] => AlchemyAPI
[object] => AlchemyAPI Object
(
[_apiKey:private] =>
[_hostPrefix:private] => access
)

[type] => ->
[args] => Array
(
[0] => http://access.alchemyapi.com/calls/text/TextGetRankedConcepts
[1] => Resource id #200
[2] => xml
)

)

eugenmayer’s picture

Well iam not familiar with the Submodule, so i want work on this. If the author wont react during 1 further week i will remove the module with the new release.

In the meantime you can use the OpenCalais submodule, which does a very good job also.

toddwshaffer’s picture

I'm having a similar issue and I'm hoping it's as simple as I think it is.

The only time this error is thrown is when Alchemy attempts to analyze a piece of content without a BODY.

Cheers guys.

eugenmayer’s picture

Status: Active » Fixed

the sub-module will be removed in the next release completly. Please use the opencalais alternative which is at least as good.

Beside the bugs you mention here there is also a GPL violation which actually forces me to remove it.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.