[Django] #27725: requests.post fail inside of django shell but not python shell

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Django] #27725: requests.post fail inside of django shell but not python shell

Django
#27725: requests.post fail inside of django shell but not python shell
-----------------------------------------+-------------------------------
               Reporter:  paulfab        |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  1.10
               Severity:  Normal         |       Keywords:  request fails
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+-------------------------------
 When I execute :
 requests.post("https://slack.com/api/chat.postMessage", data=  {"channel":
 "maison"})
 it fails in the django shell (python manage.py shell) with the error :
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed

 but it doesnt fail in the python shell
 So this tells me it is probable something Django related

 Thanks


 complete trace of the error is :
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in
 post
     return request('post', url, data=data, json=json, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in
 request
     return session.request(method=method, url=url, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468,
 in request
     resp = self.send(prep, **send_kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576,
 in send
     r = adapter.send(request, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 376,
 in send
     timeout=timeout
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 594, in urlopen
     chunked=chunked)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 350, in _make_request
     self._validate_conn(conn)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 833, in _validate_conn
     conn.connect()
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
 line 324, in connect
     cert = self.sock.getpeercert()
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 312, in getpeercert
     'subjectAltName': get_subj_alt_name(x509)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 185, in get_subj_alt_name
     for name in ext.get_values_for_type(x509.DNSName)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 141, in _dnsname_to_stdlib
     name = idna.encode(name)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 354, in
 encode
     result.append(alabel(label))
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 275, in
 alabel
     check_label(label)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 252, in
 check_label
     raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not
 allowed'.format(_unot(cp_value), pos+1, repr(label)))
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed

--
Ticket URL: <https://code.djangoproject.com/ticket/27725>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/050.5c0fae9e9a0532267df57d9fd87eaade%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by paulfab:

Old description:

> When I execute :
> requests.post("https://slack.com/api/chat.postMessage", data=
> {"channel": "maison"})
> it fails in the django shell (python manage.py shell) with the error :
> InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
>
> but it doesnt fail in the python shell
> So this tells me it is probable something Django related
>
> Thanks
>

> complete trace of the error is :
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in
> post
>     return request('post', url, data=data, json=json, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in
> request
>     return session.request(method=method, url=url, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468,
> in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576,
> in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 376,
> in send
>     timeout=timeout
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 594, in urlopen
>     chunked=chunked)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 350, in _make_request
>     self._validate_conn(conn)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 833, in _validate_conn
>     conn.connect()
>   File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
> line 324, in connect
>     cert = self.sock.getpeercert()
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 312, in getpeercert
>     'subjectAltName': get_subj_alt_name(x509)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 185, in get_subj_alt_name
>     for name in ext.get_values_for_type(x509.DNSName)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 141, in _dnsname_to_stdlib
>     name = idna.encode(name)
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 354, in
> encode
>     result.append(alabel(label))
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 275, in
> alabel
>     check_label(label)
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 252, in
> check_label
>     raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not
> allowed'.format(_unot(cp_value), pos+1, repr(label)))
> InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
New description:

 When I execute :
 requests.post("https://slack.com/api/chat.postMessage", data=  {"channel":
 "maison"})
 it fails in the django shell (python manage.py shell) with the error :

 {{{
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
 }}}


 but it doesnt fail in the python shell
 So this tells me it is probable something Django related

 Thanks


 complete trace of the error is :

 {{{
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in
 post
     return request('post', url, data=data, json=json, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in
 request
     return session.request(method=method, url=url, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468,
 in request
     resp = self.send(prep, **send_kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576,
 in send
     r = adapter.send(request, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 376,
 in send
     timeout=timeout
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 594, in urlopen
     chunked=chunked)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 350, in _make_request
     self._validate_conn(conn)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 833, in _validate_conn
     conn.connect()
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
 line 324, in connect
     cert = self.sock.getpeercert()
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 312, in getpeercert
     'subjectAltName': get_subj_alt_name(x509)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 185, in get_subj_alt_name
     for name in ext.get_values_for_type(x509.DNSName)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 141, in _dnsname_to_stdlib
     name = idna.encode(name)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 354, in
 encode
     result.append(alabel(label))
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 275, in
 alabel
     check_label(label)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 252, in
 check_label
     raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not
 allowed'.format(_unot(cp_value), pos+1, repr(label)))
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.fe4d34c33355e4a1bacaaf15f4b7293d%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Description changed by paulfab:

Old description:

> When I execute :
> requests.post("https://slack.com/api/chat.postMessage", data=
> {"channel": "maison"})
> it fails in the django shell (python manage.py shell) with the error :
>
> {{{
> InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
> }}}
>

> but it doesnt fail in the python shell
> So this tells me it is probable something Django related
>
> Thanks
>

> complete trace of the error is :
>
> {{{
> Traceback (most recent call last):
>   File "<console>", line 1, in <module>
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in
> post
>     return request('post', url, data=data, json=json, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in
> request
>     return session.request(method=method, url=url, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468,
> in request
>     resp = self.send(prep, **send_kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576,
> in send
>     r = adapter.send(request, **kwargs)
>   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 376,
> in send
>     timeout=timeout
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 594, in urlopen
>     chunked=chunked)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 350, in _make_request
>     self._validate_conn(conn)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/connectionpool.py", line 833, in _validate_conn
>     conn.connect()
>   File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
> line 324, in connect
>     cert = self.sock.getpeercert()
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 312, in getpeercert
>     'subjectAltName': get_subj_alt_name(x509)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 185, in get_subj_alt_name
>     for name in ext.get_values_for_type(x509.DNSName)
>   File "/usr/local/lib/python2.7/dist-
> packages/urllib3/contrib/pyopenssl.py", line 141, in _dnsname_to_stdlib
>     name = idna.encode(name)
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 354, in
> encode
>     result.append(alabel(label))
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 275, in
> alabel
>     check_label(label)
>   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 252, in
> check_label
>     raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not
> allowed'.format(_unot(cp_value), pos+1, repr(label)))
> InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
> }}}
New description:

 When I execute :
 requests.post("https://slack.com/api/chat.postMessage", data=  {"channel":
 "maison"})
 it fails in the django shell (python manage.py shell) with the error :

 {{{
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
 }}}


 but it doesnt fail in the python shell
 So this tells me it is probable something Django related
 It was working before, and the only thing I changed is that I updated the
 SSL certificate of my server

 Thanks


 complete trace of the error is :

 {{{
 Traceback (most recent call last):
   File "<console>", line 1, in <module>
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 107, in
 post
     return request('post', url, data=data, json=json, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/api.py", line 53, in
 request
     return session.request(method=method, url=url, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 468,
 in request
     resp = self.send(prep, **send_kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 576,
 in send
     r = adapter.send(request, **kwargs)
   File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 376,
 in send
     timeout=timeout
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 594, in urlopen
     chunked=chunked)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 350, in _make_request
     self._validate_conn(conn)
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connectionpool.py",
 line 833, in _validate_conn
     conn.connect()
   File "/usr/local/lib/python2.7/dist-packages/urllib3/connection.py",
 line 324, in connect
     cert = self.sock.getpeercert()
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 312, in getpeercert
     'subjectAltName': get_subj_alt_name(x509)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 185, in get_subj_alt_name
     for name in ext.get_values_for_type(x509.DNSName)
   File "/usr/local/lib/python2.7/dist-
 packages/urllib3/contrib/pyopenssl.py", line 141, in _dnsname_to_stdlib
     name = idna.encode(name)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 354, in
 encode
     result.append(alabel(label))
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 275, in
 alabel
     check_label(label)
   File "/usr/lib/python2.7/dist-packages/idna/core.py", line 252, in
 check_label
     raise InvalidCodepoint('Codepoint {0} at position {1} of {2} not
 allowed'.format(_unot(cp_value), pos+1, repr(label)))
 InvalidCodepoint: Codepoint U+002A at position 1 of u'*' not allowed
 }}}

--

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:2>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.b7079ebd91ff5bd52abb24213f86a629%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Tim Graham):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 You'll need to tell us where the issue is. I don't see anything obvious
 indicating that Django is at fault.

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:3>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.b9ab9ff2981de859d447a112c6647f78%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by paulfab):

 Well
 I execute the same line :
 requests.post("‚Äčhttps://slack.com/api/chat.postMessage", data= {"channel":
 "maison"})
 In both the django shell 'python manage.py shell' and the python shell
 'python', and it only fails in the first one,
 so this is django shell related

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:4>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.4315822298565f3c5e9412d05ec8f9ee%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by paulfab):

 * status:  closed => new
 * resolution:  needsinfo =>


--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:5>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.dc330fc6772a8aafe03eea0a78d9a288%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  new
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Tim Graham):

 Please tell us where the problem is rather than asking us to debug the
 issue. Looking at the traceback doesn't indicate why Django is at fault.

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:6>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.df50e44fd0bcbffa7f54153d04036717%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------
Changes (by Simon Charette):

 * status:  new => closed
 * resolution:   => needsinfo


Comment:

 `manage.py shell` uses iPython or bpython if available in your
 environment. Is it the case here?

 Else it could be caused by some code your application monkey patches but
 as Tim pointed out nothing seems to indicate Django is at fault here.

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.3d076113d1b23ddb62322ed57caa0ae3%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by paulfab):

 The fact is that my application is very simple there is no monkey patch. I
 just wanted to know in what sense django shell is different than python
 shell,  ipython or bpython could be the reason, but it is not available on
 my system.

 Maybe Django has nothing to do with that, but that is his way to handle
 https that broke my request.


 Thanks anyway

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.3ceeb564451a55c8913c6cbc853b6763%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [Django] #27725: requests.post fail inside of django shell but not python shell

Django
In reply to this post by Django
#27725: requests.post fail inside of django shell but not python shell
-------------------------------+--------------------------------------
     Reporter:  paulfab        |                    Owner:  nobody
         Type:  Bug            |                   Status:  closed
    Component:  Uncategorized  |                  Version:  1.10
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  request fails  |             Triage Stage:  Unreviewed
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+--------------------------------------

Comment (by Tim Graham):

 You can try the channels linked at TicketClosingReasons/UseSupportChannels
 for ways to get help.

--
Ticket URL: <https://code.djangoproject.com/ticket/27725#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

--
You received this message because you are subscribed to the Google Groups "Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.51504096ab4750913ef3a85f1984b4bf%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.
Loading...