last day (16 days later) » 

5:17 PM
I saw that you are putting the code import pdb; pdb.set_trace() in configure_app
which you should not do
you probably just should debug requests using the same
 
5:32 PM
can you elaborate on this? I thought it should work
 
what i am saying is that if you are using uwsgi
then the pdb should be set on startup code
instead try inside
@api.route('/login')
class Login(Resource):
and see if it works
 
5:44 PM
okay I right server starts but I get:
```log
127.0.0.1 - - [2019-07-20 19:42:44] "GET /swaggerui/swagger-ui-standalone-preset.js HTTP/1.1" 500 161 0.004149
2019-07-20 19:42:44 - root - DEBUG - Incoming request:
Headers:
Referer: http://127.0.0.1:5000/api/
Host: 127.0.0.1:5000
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3690.130 Safari/537.36
Accept-Encoding: gzip, deflate
Accept: */*
Accept-Language: en-US,en;q=0.5
Connection: keep-alive
I guess that's another unrelated problem.
 
not sure
also add
--honour-stdin
to the uwsgi command for launching server
 
i'm getting this error when running as serve_forever()
when running from uwsgi i'm still getting no app loaded
i guess i get this error because of after_request function
your solution works but unfortunately it partially solves my problem
 
6:08 PM
what is that is not solved
?
@xbound
 
unfortunatelly i need to use uwsgi as server because of one socketio client library that only works with that server but I can accept your answer with serve_forever as it is right answer and pdb actually works with it
 

  last day (16 days later) »