ampproject / ampproject/amphtml

Error : Response must contain an array or object at "feed.entry". amp-list

Open
#34,781 1 comment 0 reactions 0 assignees View on GitHub
Stale Type: Bug
Dominant language
JavaScript
Stars
14.9k
Forks
4.1k
PR merge metrics
No merged PRs in 30d

Description

### Description

I am getting this error while making amp list with _CORS proxy_
https://cdn.nixs.in/cdn/cors/?url=https://www.nixs.in/feeds/posts/default?alt=json
my code
`

{{#title}}{{$t}}{{/title}}


`

its returns `**Response must contain an array or object at "feed.entry". amp-list**`
but my array object in the **feed.entry** location
![image](https://user-images.githubusercontent.com/42892061/121290038-9366ba00-c903-11eb-841a-4300335e7910.png)

![image](https://user-images.githubusercontent.com/42892061/121289105-17b83d80-c902-11eb-967b-68c1f3f22748.png)

### Reproduction Steps

I found few links where some solution given but no one work for me

https://stackoverflow.com/questions/49020895/how-to-remove-this-error-response-must-contain-an-array-at-while-making

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

### Relevant Logs

_No response_

### Browser(s) Affected

Chrome

### OS(s) Affected

_No response_

### Device(s) Affected

_No response_

### AMP Version Affected

_No response_

Contributor guide

Open the contributing guide

Research direction

Start with the AMP list markup in the issue and reproduce it using the linked JSBin. Inspect the response returned by the CORS proxy and how the `feed.entry` path is read, then compare that with the reported error and linked prior issues. Done means the reproduction no longer reports the response-shape error with the provided feed.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.