CloudFlare uses a resolve_to DNS record to get the IP address of a domain its proxying. Typically that is cloudflare.domain.com. If that subdomain is not resolving, CloudFlare does not know where to load your page from so it will error. To correct this make sure the resolve_to subdomain resolves.