473,811 Members | 2,538 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

"No backend servers available" using httplib

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
3 2815
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
On Sep 27, 11:56 am, Bruno Desthuilliers <bruno.
42.desthuilli.. .@wtf.websitebu ro.oops.comwrot e:
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
Henrik Lied wrote:
On Sep 27, 11:56 am, Bruno Desthuilliers <bruno.
42.desthuilli.. .@wtf.websitebu ro.oops.comwrot e:
>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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2289
by: matt | last post by:
Hi all- I'm trying to port an ajax spell-checker (http://www.broken-notebook.com/spell_checker/index.php) to use with the moin moin wiki and have been somewhat successful. (By successful I mean I can spell check using the php backend and my python port running as cgi-bin). My question is this: moinmoin runs on many python web backends (cgi-bin/mod-python/twisted/standalone). My spell-checker backend runs
1
2396
by: joemynz | last post by:
Help please with a URLError. Invoking a url that works in Firefox and IE results in a "urlerror 7, no address ..." in python. I need to debug why. Traceback is below. There's a redirect when the url is invoked (it's part of a chain) - you can see it using liveheaders in firefox. What is the best way to debug this? I tried setting debug on HTTPConnection but this doesn't work (from some web posts, setting debug is broken in 2.4). What's...
1
2273
by: Joe Peterson | last post by:
I've been doing a lot of searching on the topic of one of Python's more disturbing issues (at least to me): the fact that if a __del__ finalizer is defined and a cyclic (circular) reference is made, the garbage collector cannot clean it up. First of all, it seems that it's best to avoid using __del__. So far, I have never used it in my Python programming. So I am safe there. Or am I? Also, to my knowledge, I have never created a...
0
302
by: miked | last post by:
i am trying to access printing templates from avery.com and i get a message from the nsapi plugin:no backend server available.can you help me?
0
9730
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9605
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10651
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10136
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7671
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6893
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5555
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4341
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3868
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.