(Cloudfare SSL): Cannot fetch Discourse feed JSON from subdomain


I am trying to fetch a json feed from a subdomain.

My main website is hosted on domain.com
And my forum feed on forum.domain.com

I am using Cloudflare, and ssl certificate is activated ( flexible ).

When I try to fetch a feed ( both Json and RSS ), I get an error.

Strange thing is, it works from any other websites ( even localhost )
But when I fetch the feed from the same domain name, it doesn’t work

I have also tried on another website with no ssl (http:// ) and everything works fine.

Can you help ?


Which error and how are you trying to fetch it?

1 Like

Issue is, I’m not getting any errors ( I’ve checked my logs ).
I think something is blocked on Cloudflare level.

I am trying to fetch the feed from a simple php script.

What error is the PHP script giving you? a HTTP status code would help (400, 403, etc)

Works for me with this forum’s RSS and ixudra/curl

>php artisan tinker
Psy Shell v0.9.7 (PHP 7.1.10 — cli) by Justin Hileman
>>> Curl::to('https://community.cloudflare.com/c/security.rss')->get()
=> """
   <?xml version="1.0" encoding="UTF-8" ?>\n
   <rss version="2.0" xmlns:discourse="http://www.discourse.org/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">\n

This topic was automatically closed after 30 days. New replies are no longer allowed.