By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,097 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,097 IT Pros & Developers. It's quick & easy.

"No backend servers available" using httplib

P: n/a
Hi there!

I'm using a recipe found on ASPN [1] to upload some data to an
external server.

The request fails, and all I get in response is "No backend servers
available".

So I'm wondering: Is this a known exception-message in httplib, or
could it be an error in the requested external resource?

[1]: http://aspn.activestate.com/ASPN/Coo.../Recipe/146306

-----
Thanks,
Henrik

Sep 27 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Henrik Lied a écrit :
Hi there!

I'm using a recipe found on ASPN [1] to upload some data to an
external server.

The request fails, and all I get in response is "No backend servers
available".

So I'm wondering: Is this a known exception-message in httplib,
If it was, you should have a full traceback then.
or
could it be an error in the requested external resource?
[1]: http://aspn.activestate.com/ASPN/Coo.../Recipe/146306
From the recipe's code and the message, looks like you're connecting to
(or via) a proxy which fails to relay to the real server.
Sep 27 '07 #2

P: n/a
On Sep 27, 11:56 am, Bruno Desthuilliers <bruno.
42.desthuilli...@wtf.websiteburo.oops.comwrote:
Henrik Lied a écrit :
Hi there!
I'm using a recipe found on ASPN [1] to upload some data to an
external server.
The request fails, and all I get in response is "No backend servers
available".
So I'm wondering: Is this a known exception-message in httplib,

If it was, you should have a full traceback then.
or
could it be an error in the requested external resource?
[1]:http://aspn.activestate.com/ASPN/Coo.../Recipe/146306

From the recipe's code and the message, looks like you're connecting to
(or via) a proxy which fails to relay to the real server.
Hello Bruno,

The actual reason was quite a bit simpler: The receiving server
required a certain keyword to be first in the request - which I was
not aware of. So now it works - but it's not perfect:

Is there a way to stream the file content over the connection? The way
it works now, the whole file is loaded into memory, right?

Sep 27 '07 #3

P: n/a
Henrik Lied wrote:
On Sep 27, 11:56 am, Bruno Desthuilliers <bruno.
42.desthuilli...@wtf.websiteburo.oops.comwrote:
>Henrik Lied a écrit :
Hi there!
I'm using a recipe found on ASPN [1] to upload some data to an
external server.
The request fails, and all I get in response is "No backend servers
available".
So I'm wondering: Is this a known exception-message in httplib,

If it was, you should have a full traceback then.
or
could it be an error in the requested external resource?
[1]:http://aspn.activestate.com/ASPN/Coo.../Recipe/146306

From the recipe's code and the message, looks like you're connecting to
(or via) a proxy which fails to relay to the real server.

Hello Bruno,

The actual reason was quite a bit simpler: The receiving server
required a certain keyword to be first in the request - which I was
not aware of. So now it works - but it's not perfect:

Is there a way to stream the file content over the connection? The way
it works now, the whole file is loaded into memory, right?
It appears not, as the httplib uses sendall on the underlying socket.

Diez
Sep 27 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.