Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feed won't validate WordPress feeds containing images with srcset #19

Open
pingram3541 opened this issue May 6, 2017 · 2 comments
Open

Comments

@pingram3541
Copy link

pingram3541 commented May 6, 2017

I have a site where the script outputs errors stating the feed url is invalid or the feed content is not valid:

Error: Feed failed! Causes may be (1) No data found for RSS feed https://www.mywebsite.com/blog/feed; (2) There are no items are available for this feed; (3) The RSS feed does not validate.

However when I execute the script src directly in my browser it works just fine.

feed2js_ck = true;

document.write('<div class="rss-box">');
document.write('<ul class="rss-items">');
document.write('<li class="rss-item"><a class="rss-item" href="https://www.mywebsite.com/blog/families-of-criminals-reach-their-breaking-point-a-new-investigation-discovery-series-premiering-january-15" target="_self">FAMILIES OF CRIMINALS REACH THEIR BREAKING POINT - A NEW INVESTIGATION DISCOVERY SERIES PREMIERING JANUARY 15</a><br />');
document.write('</li>');
document.write('<li class="rss-item"><a class="rss-item" href="https://www.mywebsite.com/blog/lifestyle-leader-and-mindfulness-expert-is-keynote-speaker-at-long-island-womens-wellness-conference" target="_self">LIFESTYLE LEADER AND MINDFULNESS EXPERT IS KEYNOTE SPEAKER AT LONG ISLAND WOMENS WELLNESS CONFERENCE</a><br />');
document.write('</li>');
document.write('<li class="rss-item"><a class="rss-item" href="https://www.mywebsite.com/blog/lifestyle-leader-joan-moran-receives-nomination-la-business-journal-for-women-making-a-difference-award" target="_self">Lifestyle Leader Joan Moran Receives Nomination - LA Business Journal for Women Making a Difference Award</a><br />');
document.write('</li>');
document.write('<li class="rss-item"><a class="rss-item" href="https://www.mywebsite.com/blog/the-annual-socal-csp-event" target="_self">the Annual SoCal CSP Event</a><br />');
document.write('</li>');
document.write('<li class="rss-item"><a class="rss-item" href="https://www.mywebsite.com/blog/slam-dunk-delivery-with-two-nsa-members" target="_self">SLAM Dunk Delivery with Two NSA Members</a><br />');
document.write('</li>');
document.write('</ul></div>');

Any ideas?

@pingram3541
Copy link
Author

Issue was the main site was https and blog was http.

@pingram3541
Copy link
Author

pingram3541 commented May 6, 2017

Nope that wasn't it. Well it is but blog feed url is indeed loading http or https but fails when using https as the src attr when using this script. I should also clarify that I am using the "build" tool on the feed2js.org website. When I use a url with https, the script errors out. If I change to http it works but when loading from my website, http will always rewrite to https.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant