# URL Feed Not Validated: Expecting text/xml but rcvd text/plain

**URL:** <https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131>\
**Category:** Archived\
**Tags:** roku-developer-program\
**Created:** [February 13, 2017, 7:16pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131 "2017-02-13T19:16:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![DGPT](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@DGPT](https://forum.developer.roku.com/u/DGPT)\
**Post date:** [February 13, 2017, 7:16pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/1 "2017-02-13T19:16:54Z")

</div>

I am trying to upload my Feed URL for the first time. I have done the following:

- Created JSON file (in Google Docs and then exporting as a .txt file)

- Tested it in the Schema Validator

- Uploaded it to my AWS as a .txt file

- Linked to it in my Roku Developer page

My Feed URL is here:  
[https://s3.amazonaws.com/assets.dgpt.co … ONFile.txt](https://s3.amazonaws.com/assets.dgpt.com/2017/02/DGPTJSONFile.txt)

I get the following error:  
The feed URL(s) could not be validated.

- The server returned an unsupported content type. Was expecting ‘application/rss+xml’, ‘text/xml’, ‘application/xml’ or ‘application/json’ but received ‘text/plain’.

---

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [February 13, 2017, 7:28pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/2 "2017-02-13T19:28:28Z")

</div>

Try uploading it as a “.json” file, since that’s what it is.

---

<div class="post-metadata">

**Author:** ![DGPT](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@DGPT](https://forum.developer.roku.com/u/DGPT)\
**Post date:** [February 13, 2017, 7:31pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/3 "2017-02-13T19:31:03Z")

</div>

I have changed the extension to .json and tried uploading it and get the same “URL Feed not validated” error message.

The new file is located at [http://dgprotour.weebly.com/uploads/5/1/7/2/51727149/dgptjsonfile.json](http://dgprotour.weebly.com/uploads/5/1/7/2/51727149/dgptjsonfile.json)

Unfortunately, I’m still getting the following error:  
The feed URL(s) could not be validated.

- The server returned an unsupported content type. Was expecting ‘application/rss+xml’, ‘text/xml’, ‘application/xml’ or ‘application/json’ but received ‘text/plain’.

---

<div class="post-metadata">

**Author:** ![belltown](https://avatars.discourse-cdn.com/v4/letter/b/8edcca/32.png) [@belltown](https://forum.developer.roku.com/u/belltown)\
**Post date:** [February 13, 2017, 7:58pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/4 "2017-02-13T19:58:05Z")

</div>

Your “.txt” file on AWS is served with a Content-Type of “text/plain”, which is what I’d expect from a “.txt” file. I’m not familiar with AWS, but I would try changing the extension to “.json” and see if AWS serves it up with a Content-Type of “application/json”.

Your “.json” file on Weebly is served with a Content-Type of “application/octet-stream”. I’m not sure how (or if) you could change that on Weebly. In any case, it’s a violation of Weebly’s Terms of Service to host files that weren’t created with the Weebly editor.

---

<div class="post-metadata">

**Author:** ![Tajson](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@Tajson](https://forum.developer.roku.com/u/Tajson)\
**Post date:** [February 13, 2017, 8:02pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/5 "2017-02-13T20:02:03Z")

</div>

> “DGPT” wrote:
> 
> - The server returned an unsupported content type. Was expecting ‘application/rss+xml’, ‘text/xml’, ‘application/xml’ or ‘application/json’ but received ‘text/plain’.

- If you want to upload it as a file, you need to convert your json into xml ( [http://naleid.com/blog/2013/05/22/saving-json-client-side-to-an-s3-bucket](http://convertjson.com/json-to-xml.htm:1xntciqq%5Dhttp)

---

<div class="post-metadata">

**Author:** ![squirreltown](https://avatars.discourse-cdn.com/v4/letter/s/f07891/32.png) [@squirreltown](https://forum.developer.roku.com/u/squirreltown)\
**Post date:** [February 13, 2017, 8:06pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/6 "2017-02-13T20:06:28Z")

</div>

> “belltown” wrote:  
> I’m not familiar with AWS, but I would try changing the extension to “.json” and see if AWS serves it up with a Content-Type of “application/json”.  
> I have JSON files on S3. They won’t work unless I change the properties/metadata to txt/rtf. There is no application/json option. I’m using getToString() to snag it.

---

<div class="post-metadata">

**Author:** ![DGPT](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@DGPT](https://forum.developer.roku.com/u/DGPT)\
**Post date:** [February 13, 2017, 8:46pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/7 "2017-02-13T20:46:48Z")

</div>

Thank you, the JSON and XML file give me the same reply when trying to upload to AWS:

> “DGPT-ROKU-FEED.xml” has failed to upload. Sorry, this file type is not permitted for security reasons.  
> On Weebly, I uploaded the file successfully and now get the following error:

> For MRSS feeds a video type must be provided.  
> Does the conversion to XML mean that I am now using MRSS? If so, there are apparently different parameters/types that need to be defined?  
> My guess is that I somehow went from a JSON feed to an MRSS feed with the JSON–\>XML conversion.

Does anyone know of a sample MRSS feed that I can utilize to replicate my new file from?

---

<div class="post-metadata">

**Author:** ![EnTerr](https://avatars.discourse-cdn.com/v4/letter/e/ba9def/32.png) [@EnTerr](https://forum.developer.roku.com/u/EnTerr)\
**Post date:** [February 14, 2017, 8:48pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/8 "2017-02-14T20:48:50Z")

</div>

This should be in the next-door forum [https://forums.roku.com/viewforum.php?f=100](https://forums.roku.com/viewforum.php?f=100) - right?

---

<div class="post-metadata">

**Author:** ![DGPT](https://avatars.discourse-cdn.com/v4/letter/d/3e96dc/32.png) [@DGPT](https://forum.developer.roku.com/u/DGPT)\
**Post date:** [February 15, 2017, 1:44pm UTC](https://forum.developer.roku.com/t/url-feed-not-validated-expecting-text-xml-but-rcvd-text-plain/5131/9 "2017-02-15T13:44:46Z")

</div>

Yes, it should be. I misunderstood the forum structure. My primary issue seems to be, “where and how do I host my JSON file?” I found [myjson.com](http://myjson.com) and have posted my current issue at this thread: [https://forums.roku.com/viewtopic.php?f=100&t=99485&p=551880#p551880](https://forums.roku.com/viewtopic.php?f=100&t=99485&p=551880#p551880)

Thanks.
