REST: erro ao adicionar um mocambola
Precisa ver o jeito que vao ser criados novos usuarios/mocambolas.
Atualmente a chamada rest è confusa. Tem dados repetidos no formulario e no json e dificulta rodar testes.
De qualquer forma esse è o erro colocando os metadados conhecidos (faltam por exemplo, smid, slug..)
INFO: 127.0.0.1:36658 - "POST /mocambola/acervo-bruto-da-rede-_S8Vpa/abdias-nascimento-nk5_DEBny?recovery_answer=bianco HTTP/1.1" 500 Internal Server Error
ERROR: Exception in ASGI application
Traceback (most recent call last):
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 375, in run_asgi
result = await app(self.scope, self.receive, self.send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 75, in __call__
return await self.app(scope, receive, send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/fastapi/applications.py", line 208, in __call__
await super().__call__(scope, receive, send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/applications.py", line 112, in __call__
await self.middleware_stack(scope, receive, send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/middleware/errors.py", line 181, in __call__
raise exc from None
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/middleware/errors.py", line 159, in __call__
await self.app(scope, receive, _send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/exceptions.py", line 82, in __call__
raise exc from None
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/exceptions.py", line 71, in __call__
await self.app(scope, receive, sender)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/routing.py", line 580, in __call__
await route.handle(scope, receive, send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/routing.py", line 241, in handle
await self.app(scope, receive, send)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/starlette/routing.py", line 52, in app
response = await func(request)
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/fastapi/routing.py", line 227, in app
dependant=dependant, values=values, is_coroutine=is_coroutine
File "/home/befree/dev/gitlab/baobaxia-mucua/test-bbx/lib/python3.7/site-packages/fastapi/routing.py", line 159, in run_endpoint_function
return await dependant.call(**values)
File "./baobaxia/rest.py", line 361, in post_mocambola
token = token
File "./baobaxia/root.py", line 312, in put_mocambola
Sankofa.add(saberes=[mocambola_saber], mocambola=session.mocambola,
NameError: name 'mocambola_saber' is not defined