Skip to content

Cookies for zip code: 30322 and region: US not found. Docker #16

@Yimeetra

Description

@Yimeetra

I deployed service using docker. Then I use curl:
curl -X 'GET' 'http://127.0.0.1:8000/api/v1/locations/cookies?zip_code=30322&country_code=US' -H 'accept: application/json'

Here's docker logs:

2025-06-22 11:05:45 amazon-location-web       | INFO:     Started server process [1]
2025-06-22 11:05:45 amazon-location-web       | INFO:     Waiting for application startup.
2025-06-22 11:05:45 amazon-location-web       | INFO:     Application startup complete.
2025-06-22 11:05:45 amazon-location-web       | INFO:     Uvicorn running on http://0.0.0.0:8000 (Press CTRL+C to quit)
2025-06-22 11:05:52 amazon-location-web       | INFO:     172.19.0.1:41650 - "GET /api/v1/locations/cookies?zip_code=30322&country_code=US HTTP/1.1" 404 Not Found
2025-06-22 11:05:43 amazon-location-scrapyrt  | /usr/local/lib/python3.12/site-packages/scrapyrt/__init__.py:2: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
2025-06-22 11:05:43 amazon-location-scrapyrt  |   from pkg_resources import parse_version
2025-06-22 11:05:44 amazon-location-scrapyrt  | 2025-06-22 09:05:44+0000 [-] Log opened.
2025-06-22 11:05:44 amazon-location-scrapyrt  | 2025-06-22 09:05:44+0000 [-] Site starting on 7800
2025-06-22 11:05:44 amazon-location-scrapyrt  | 2025-06-22 09:05:44+0000 [-] Starting factory <twisted.web.server.Site object at 0x7f240f1542c0>
2025-06-22 11:05:44 amazon-location-scrapyrt  | 2025-06-22 09:05:44+0000 [-] Running with reactor: EPollReactor. 
2025-06-22 11:05:52 amazon-location-scrapyrt  | 2025-06-22 09:05:52+0000 [-] "172.19.0.3" - - [22/Jun/2025:09:05:52 +0000] "GET /crawl.json?start_requests=1&spider_name=amazon%3Alocation-delivery-session&crawl_args=%7B%22zip_code%22%3A+%2230322%22%2C+%22country%22%3A+%22us%22%7D HTTP/1.1" 200 1379 "-" "python-requests/2.31.0"
2025-06-22 11:09:14 amazon-location-scrapyrt  | 2025-06-22 09:09:14+0000 [-] "172.19.0.3" - - [22/Jun/2025:09:09:14 +0000] "GET /crawl.json?start_requests=1&spider_name=amazon%3Alocation-delivery-session&crawl_args=%7B%22zip_code%22%3A+%2230322%22%2C+%22country%22%3A+%22us%22%7D HTTP/1.1" 200 1379 "-" "python-requests/2.31.0"
2025-06-22 11:09:14 amazon-location-web       | INFO:     172.19.0.1:51120 - "GET /api/v1/locations/cookies?zip_code=30322&country_code=US HTTP/1.1" 404 Not Found

Maybe it doesn't works because of amount of previous requests.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions