issues with Scribd API & PHP libraries - internal server error

43 views
Skip to first unread message

Mike Z.

unread,
Oct 14, 2009, 9:45:28 PM10/14/09
to Scribd Platform Talk
I have recently started using the Scribd API with the PHP client
libraries, and had much success uploading documents to Scribd and
retrieving information on those files up until today. Now, whenever I
attempt to use one of the API methods (such as docs.getSettings), the
page hangs and I receive an "internal server error" notice. Commenting
out any code that calls the method(s) allows the page to load
normally. I have made no changes to my code, so I can assume either 1)
I'm somehow locked out from Scribd or 2) there is an issue on Scribd's
end. Any insight would be very welcome!

Thank you,

Mike Zavarello

Jared Friedman

unread,
Oct 14, 2009, 9:47:57 PM10/14/09
to scribd-platfo...@googlegroups.com
Issue on Scribd's end.  Can you send me the full API call you were making to docs.getSettings?

Mike Z.

unread,
Oct 14, 2009, 10:05:11 PM10/14/09
to Scribd Platform Talk
[did "reply to author" by accident; reposting for this thread]

Certainly. Below is sample call to the client library using a document
ID in our collection:

$data = $scribd->getSettings(6490033);

I'm using the following public function in the PHP library:

public function getSettings($doc_id){
$method = "docs.getSettings";
$params['doc_id'] = $doc_id;

$result = $this->postRequest($method, $params);
return $result;
}

Let me know if you need further information to diagnose the issue.
Thanks!




On Oct 14, 9:47 pm, Jared Friedman <ja...@scribd.com> wrote:
> Issue on Scribd's end.  Can you send me the full API call you were making to
> docs.getSettings?
>

Jared Friedman

unread,
Oct 17, 2009, 1:25:22 AM10/17/09
to scribd-platfo...@googlegroups.com
Hi Mike,

I'm having some trouble tracking down this error.  Is Scribd giving you a 500 internal server error message?  Or is that your own app's error message happening because the request to Scribd's server is hitting an internal time limit?

My best ideas at this time are (1) we've blocked your IP, or (2) there's an issue on your end that's preventing your server from seeing Scribd. 

To help me debug, can you send me the IP address of the server that's making the request?  Can you also try running "curl http://api.scribd.com/api" on your server and let me know what response you get?

Best,
Jared

Mike Z.

unread,
Oct 24, 2009, 11:58:00 AM10/24/09
to Scribd Platform Talk
Jared,

Thanks for getting back to me on this issue. I was out of town the
past few days, and am just catching up on the status of this issue.

I did some further tests today (October 24), and issue has apparently
been resolved. The tools I developed using the PHP client libraries to
upload papers and retrieve subsequent data from Scribd are working as
expected, and I'm no longer receiving 500 internal server issues. I'll
keep an eye on the tools over the next few days to make certain, but
all appears to be well in the world.

I appreciate your assistance!

Mike



On Oct 17, 1:25 am, Jared Friedman <ja...@scribd.com> wrote:
> Hi Mike,
>
> I'm having some trouble tracking down this error.  Is Scribd giving you a
> 500 internal server error message?  Or is that your own app's error message
> happening because the request to Scribd's server is hitting an internal time
> limit?
>
> My best ideas at this time are (1) we've blocked your IP, or (2) there's an
> issue on your end that's preventing your server from seeing Scribd.
>
> To help me debug, can you send me the IP address of the server that's making
> the request?  Can you also try running "curlhttp://api.scribd.com/api" on
Reply all
Reply to author
Forward
0 new messages