I checked my query it is working fine but I found error sometime when I run 

responsemmpn = urllib2.urlopen(requestmmpn)

In first go it throws below error but second time I run this same command 
it works fine for me. Why this is happening??

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 124, in urlopen
    return _opener.open(url, data, timeout)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 389, in open
    response = meth(req, response)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 421, in error
    result = self._call_chain(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 361, in _call_chain
    result = func(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 608, in http_error_302
    return self.parent.open(new)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 389, in open
    response = meth(req, response)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 502, in http_response
    'http', request, response, code, msg, hdrs)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 427, in error
    return self._call_chain(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 361, in _call_chain
    result = func(*args)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py",
 
line 510, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 404: Not Found





On Friday, 8 November 2013 03:50:30 UTC-8, Leonel Câmara wrote:
>
> From what I could test the problem is that your query is wrong in one of 
> those steps. Check exactly what you are putting there.
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to