bugMapOSMatic - Bugs: bug #36253, /apis/papersize/ failure: float()...

 
 

bug #36253: /apis/papersize/ failure: float() argument must be a string or a number

Submitted by:  David Mentré <dmentre>
Submitted on:  Thu 19 Apr 2012 01:53:39 PM UTC  
 
Category: daemonSeverity: 4 - Important
Priority: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: David Mentré <dmentre>
Open/Closed: ClosedRelease: None

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 21 May 2013 12:46:49 AM UTC, comment #3:

Fresh list of ninjaproxy, vtunnel, facebook proxy to unblock most blocked site like facebook, youtube, in office, school with free and fast anonymous web browsing. Working fine, no need to worry about privacy and security issues, just use for general purpose only. Check this out :

http://www.ninjaproxy.eu
http://www.ninjaproxy.org.uk
http://www.vtunnel.ca
http://www.fbproxy.us
http://www.ninjacloak.us
http://www.proxyninja.us

-Deleted Account- <brucewayne>
Mon 23 Apr 2012 07:40:04 PM UTC, comment #2:

Patch applied as http://git.savannah.gnu.org/cgit/maposmatic.git/commit/?id=48792023237d695598ca8951630db8a7edb8edda. I guess the patch is correct, so let's mark the bug as fixed :-)

Thomas Petazzoni <tpetazzoni>
Project Administrator
Sat 21 Apr 2012 04:12:09 PM UTC, comment #1:

Patch send on 2012-04-21 to dev@. Check that received floats are not None.

David Mentré <dmentre>
Project AdministratorIn charge of this item.
Thu 19 Apr 2012 01:53:39 PM UTC, original submission:

Sometimes, the /apis/papersize/ handler fails with an exception, like this one:
"""
Traceback (most recent call last):

File "/usr/lib/pymodules/python2.6/django/core/handlers/base.py", line 100, in get_response
response = callback(request, callback_args, *callback_kwargs)

File "/home/maposmatic/maposmatic-prod/maposmatic/www/maposmatic/views.py", line 247, in query_papersize
lat_bottom_right, lon_bottom_right)

File "/home/maposmatic/maposmatic-prod/ocitysmap/ocitysmap2/coords.py", line 86, in _init_
(self._lat1, self._long1) = float(lat1), float(long1)

TypeError: float() argument must be a string or a number

<WSGIRequest
GET:<QueryDict: {}>,
POST:<QueryDict: {u'lat_bottom_right': [u''], u'layout': [u'single_page_index_bottom'], u'lat_upper_left': [u''], u'lon_upper_left': [u''], u'stylesheet': [u'Default'], u'lon_bottom_right': [u'']}>,
COOKIES:{XXXXXXXXXXXXXXXXXXXXX},
META:{'CONTENT_LENGTH': '118',
'CONTENT_TYPE': 'application/x-www-form-urlencoded; charset=UTF-8',
'DOCUMENT_ROOT': '/home/maposmatic/public_html/www.maposmatic.org',
'GATEWAY_INTERFACE': 'CGI/1.1',
'HTTP_ACCEPT': '/',
'HTTP_ACCEPT_ENCODING': 'gzip, deflate',
'HTTP_ACCEPT_LANGUAGE': 'de-de,de;q=0.8,en-us;q=0.5,en;q=0.3',
'HTTP_CACHE_CONTROL': 'no-cache',
'HTTP_CONNECTION': 'Keep-Alive',
'HTTP_COOKIE': XXXXXXXXXXXXXXXXXXXXX,
'HTTP_HOST': 'www.maposmatic.org',
'HTTP_PRAGMA': 'no-cache',
'HTTP_REFERER': 'http://www.maposmatic.org/new/',
'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux i686; rv:11.0) Gecko/20100101 Firefox/11.0',
'HTTP_VIA': '1.0 PROXY',
'HTTP_X_BLUECOAT_VIA': 'CD965CDC93882071',
'HTTP_X_REQUESTED_WITH': 'XMLHttpRequest',
'PATH_INFO': u'/apis/papersize/',
'PATH_TRANSLATED': '/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi/apis/papersize/',
'QUERY_STRING': '',
'REMOTE_ADDR': 'XXXXXXXXXXXXXXXXXXXXX',
'REMOTE_PORT': 'XXXXXXXXXXXXXXXXXXXXX',
'REQUEST_METHOD': 'POST',
'REQUEST_URI': '/apis/papersize/',
'SCRIPT_FILENAME': '/home/maposmatic/public_html/www.maposmatic.org/maposmatic.wsgi',
'SCRIPT_NAME': u'',
'SERVER_ADDR': '193.19.209.9',
'SERVER_ADMIN': 'webmaster@maposmatic.org',
'SERVER_NAME': 'www.maposmatic.org',
'SERVER_PORT': '80',
'SERVER_PROTOCOL': 'HTTP/1.1',
'SERVER_SIGNATURE': '<address>Apache/2.2.16 (Debian) Server at http://www.maposmatic.org Port 80</address>\n',
'SERVER_SOFTWARE': 'Apache/2.2.16 (Debian)',
'mod_wsgi.application_group': 'maposmatic.org|',
'mod_wsgi.callable_object': 'application',
'mod_wsgi.handler_script': '',
'mod_wsgi.input_chunked': '0',
'mod_wsgi.listener_host': '',
'mod_wsgi.listener_port': '80',
'mod_wsgi.process_group': '',
'mod_wsgi.request_handler': 'wsgi-script',
'mod_wsgi.script_reloading': '1',
'mod_wsgi.version': (3, 2),
'wsgi.errors': <mod_wsgi.Log object at 0x7f0449698ab0>,
'wsgi.file_wrapper': <built-in method file_wrapper of mod_wsgi.Adapter object at 0x7f04496aab70>,
'wsgi.input': <mod_wsgi.Input object at 0x7f0449698470>,
'wsgi.multiprocess': True,
'wsgi.multithread': False,
'wsgi.run_once': False,
'wsgi.url_scheme': 'http',
'wsgi.version': (1, 1)}>
"""

David Mentré <dmentre>
Project AdministratorIn charge of this item.

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by brucewayne (Posted a comment)
  • -unavailable- added by tpetazzoni (Posted a comment)
  • -unavailable- added by dmentre (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 23 Apr 2012 07:40:04 PM UTCtpetazzoniStatusConfirmed=>Fixed
      Open/ClosedOpen=>Closed
    Sat 21 Apr 2012 04:31:38 PM UTCdmentreAssigned toNone=>dmentre

    Back to the top


    Powered by Savane 3.1-cleanup1