I have a strange problem and it looks exactly like this:
I am consuming the instagram API and this happens the following thing:
- The return and display of the network tab of the devtools, but in the request callback, is done with XMLHttpRequest, fetch, jQuery.get, etc ... nothing is shown.
- In fetch api the following error is shown: TypeError: Failed to fetch
Howtosolvethisproblemwhere,thereturnexistsbutIcannotcatchitintherequestcallback?
Codethatexecutesthecallininstagramapi: