Fix app not starting due to http request in main thread