简体   繁体   English

响应必须在“feed.entry”中包含一个数组或 object。 放大器列表

[英]Response must contain an array or object at "feed.entry". amp-list

I am getting this error while making amp list with CORS proxy my code使用 CORS 代理我的代码制作放大器列表时出现此错误

<amp-list items='feed.entry' layout="fixed-height" height="100" src="https://cdn.nixs.in/cdn/cors/?url=https://www.nixs.in/feeds/posts/default?alt=json" binding="no"> <template type="amp-mustache"> <div>{{#title}}{{$t}}{{/title}}</div> </template> </amp-list>

its returns Response must contain an array or object at "feed.entry".它的返回响应必须在“feed.entry”中包含一个数组或 object。 amp-list but my array object in the feed.entry location amp-list但我的数组 object 在 feed.entry 位置

I found few links where some solution given but no one work for me我发现一些链接给出了一些解决方案,但没有一个对我有用

how to remove this error "Response must contain an array at ". 如何删除此错误“响应必须包含一个数组”。 "." “。” while making dropdown 在制作下拉菜单时

https://github.com/ampproject/amphtml/issues/10613 https://github.com/ampproject/amphtml/issues/9687 https://github.com/ampproject/amphtml/issues/10613 https://github.com/ampproject/amphtml/issues/9687

here is my code https://jsbin.com/yoruvalego/edit?html,js,output这是我的代码https://jsbin.com/yoruvalego/edit?html,js,output

在此处输入图像描述 在此处输入图像描述

I think there is a difficulty in your CORS proxy code... I would recommend you should use RSS to Json converting apis it has a default cors proxy.我认为您的 CORS 代理代码存在困难......我建议您应该使用RSS 到 Json 转换 api它有一个默认的 cors 代理。 i tested my self我测试了自己

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM