Skip to content
Advertisement

Flask response.data raise error TypeError: ‘NoneType’ object is not callable

I use an online free api hoster and I have an issue with reponse.data, I use that on @app.after_request with should log path, args and server response, problem is that in console I get:

JavaScript

But on discord logger I see the log:

enter image description here

The code is :

JavaScript

I don’t know how to fix it But once I remove @app.after_request it works fine

Advertisement

Answer

I managed to solve the problem. The problem was that I was capturing the answer but not pushing further

FIXED:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement