I need to send api request from my app, but no error happens yet my app freezes. Using a poor debugging method, I found out that the error happens in the next few lines: