On Wednesday, July 17, 2019 at 11:02:59 AM UTC-7, Tito Garrido wrote:
>
> No entry in the database... 
>
> I could execute the post from postman... but if I try from axios in vue I 
> am even getting a web2py server error:
>
> ERROR:Rocket.Errors.Thread-2:Traceback (most recent call last):
>>   File 
>> "/Users/titogarridoogando/Documents/Projetos/web2py/controle/web2py/gluon/rocket.py",
>>  
>> line 1797, in run_app
>>     sections = len(output)
>> TypeError: object of type 'Reference' has no len()
>>
>> During handling of the above exception, another exception occurred:
>>
>> Traceback (most recent call last):
>>   File 
>> "/Users/titogarridoogando/Documents/Projetos/web2py/controle/web2py/gluon/rocket.py",
>>  
>> line 1288, in run
>>     self.run_app(conn)
>>   File 
>> "/Users/titogarridoogando/Documents/Projetos/web2py/controle/web2py/gluon/rocket.py",
>>  
>> line 1819, in run_app
>>     output.close()
>> TypeError: 'NoneType' object is not callable
>
>
>
> No idea what it means...
>

Which version of web2py are you using?   Is this with Python2 or Python3?

In 2.18.2,
line 1797 of rocket.py immediately follows a check "if hasattr(output, 
'__len__'):"
which makes the exception surprising.

The additonal exception is perhaps of the "after the car landed in the 
river, the steering wheel did not turn the car" type.

/dps

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/f3952a32-d7ea-40f8-8bca-7853ccfa9a28%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to