Is it a Cors Policy issue maybe? You can try using this line to test:
const String proxyUrl = 'https://cors-anywhere.herokuapp.com/'; const String baseUrl = proxyUrl + "BASE_URL.com";