Wingysam / Christmas-Community

Christmas lists for families
GNU Affero General Public License v3.0
206 stars 39 forks source link

Amazon links don't always load #91

Open raiyni opened 8 months ago

raiyni commented 8 months ago

Looked in docker compose logs and saw nothing. I have no other information other than I added several amazon items with their short url without the affiliate params.

image

docker-compose:

version: "3"
services:
  christmas-community:
    image: wingysam/christmas-community
    volumes:
      - ./data:/data
    environment:
      SITE_TITLE: 'Wish Lists'
      SMILE: 'false'
      MARKDOWN: 'true'
      LISTS_PUBLIC: 'true'
      GUEST_PASSWORD: 'xxxx'
    labels:
      - "traefik.enable=true"
      - "traefik.http.routers.wishlist.rule=Host(`xxx`)"
      - "traefik.http.routers.wishlist.entrypoints=xxx"
      - "traefik.http.routers.wishlist.tls.certresolver=xxx"
    restart: unless-stopped
    networks:
      - proxy

networks:
  proxy:
    external: true
Wingysam commented 8 months ago

That's weird, the URL I picked to test with is working as expected: image

Maybe Amazon is ratelimiting you and throwing a CAPTCHA of some type? Do you have a set of links I can add to a wishlist to try to reproduce this?

raiyni commented 8 months ago

Sure.

Sometimes I get: Error: Res not ok. Status: 503 Service Unavailable

Sometimes it's a 200 but doesn't update the information

and

Sometimes it fills the information in after I hit Refresh Data. So maybe being CAPTCHA'd is the answer.

https://www.amazon.com/dp/B001TPA816
https://www.amazon.com/dp/B000I0MGKE
https://www.amazon.com/dp/B00TQ5SEAI
https://www.amazon.com/dp/B078RQVQF1
https://www.amazon.com/dp/B08QGH9HG6
Wingysam commented 8 months ago

Pasting all 5 links into my list worked as expected for me. Any ideas for how I can reproduce this? What country are you in?