If I try to user curl to call the api_get_user_email function in the 
default controller of the welcome app, using a fresh copy of web2py & under 
python 3.6.3, the following ticket gets generated:

<class 'TypeError'> a bytes-like object is required, not 'str'Version
web2py™ Version 2.16.1-stable+timestamp.2017.11.14.05.54.25Traceback

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.

Traceback (most recent call last):
  File "/Users/shunter/Dropbox/web2py-v2.16.1/gluon/restricted.py", line 219, 
in restricted
    exec(ccode, environment)
TypeError: a bytes-like object is required, not 'str'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/shunter/Dropbox/web2py-v2.16.1/gluon/restricted.py", line 141, 
in __init__
    self.traceback = traceback.format_exc()
AttributeError: 'NoneType' object has no attribute 'strip'

In file: 
/Users/shunter/Dropbox/web2py-v2.16.1/applications/welcome/controllers/default.py

1.

<code object <module> at 0x109a970c0, file 
"/Users/shunter/Dropbox/web2py-v2.16.1/applications/welcome/controllers/default.py",
 line 8>



As I haven't introduced any code to this setup, either there is a bug or I 
am calling this incorrectly; here's the curl command:

curl --user username:password 
http://127.0.0.1:8000/welcome/default/api_get_user_email


Any guidance as to what needs to be fixed would be appreciated.


- Scott

-- 
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/d/optout.

Reply via email to