Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chile_compra_api_records/chile_compra_api_releases return 502 #1037

Closed
jpmckinney opened this issue Dec 1, 2023 · 11 comments
Closed

chile_compra_api_records/chile_compra_api_releases return 502 #1037

jpmckinney opened this issue Dec 1, 2023 · 11 comments

Comments

@jpmckinney
Copy link
Member

e.g. https://open-contracting-partnership.sentry.io/issues/2631582176/?project=5287294&query=is%3Aunresolved&referrer=issue-stream&statsPeriod=14d&stream_index=1

Not sure what proportion of requests time out.

@yolile
Copy link
Member

yolile commented Apr 26, 2024

Frozen in the registry

@jpmckinney
Copy link
Member Author

jpmckinney commented Apr 26, 2024

In the above issue, can filter out the Chile events with !title:"Gave up retrying <GET http://api.mercadopublico.cl/APISOCDS/OCDS/listaOCDSAgnoMes*"

TCPTimedOutError
TCP connection timed out: 110: Connection timed out.

https://open-contracting-partnership.sentry.io/issues/4834711386/

Can filter out the Chile events in Sentry with !message:"Error downloading <GET http://api.mercadopublico.cl/APISOCDS/OCDS/listaOCDSAgnoMes*"

The URLs also fail for me locally, e.g. http://api.mercadopublico.cl/APISOCDS/OCDS/listaOCDSAgnoMesConvenio/2022/07/0/10

@jpmckinney jpmckinney changed the title chile_compra_api_records times out chile_compra_api_records/chile_compra_api_releases times out Apr 27, 2024
@yolile
Copy link
Member

yolile commented Jul 9, 2024

The requests are now working but they are returning 502 when requesting them from scrapy (either locally or from the server). They work via the browser or with curl (locally and on the server).

@yolile yolile changed the title chile_compra_api_records/chile_compra_api_releases times out chile_compra_api_records/chile_compra_api_releases return 502 Jul 9, 2024
@jpmckinney
Copy link
Member Author

Where are the docs? The Swagger URL in the spider is 404: https://desarrolladores.mercadopublico.cl/docs/services/5a9ed02f718ed712f4403e75/operations/data-listaa-omes-agno-mes

desarrolladores.mercadopublico.cl doesn't respond.

api.mercadopublico.cl has no OCDS docs that I can find.

@yolile
Copy link
Member

yolile commented Jul 9, 2024

The new API documentation is available at https://datos-abiertos.chilecompra.cl/descargas/procesos-ocds

@jpmckinney
Copy link
Member Author

Do they still respond with e.g. {"status": 500, "detail": "error"} according to the docs? status used to be in every response, but it's no longer there.

@jpmckinney
Copy link
Member Author

Fixed in 0a88662 (had to use https not http). I deleted parse_list_loader, since status isn't set (at least not for successful responses – no idea what happens with error responses).

@yolile
Copy link
Member

yolile commented Jul 9, 2024

Do they still respond with e.g. {"status": 500, "detail": "error"} according to the docs?

Hard to test and the spider is not working, but at least for 502 they respond with the actual 502 error

@jpmckinney
Copy link
Member Author

jpmckinney commented Jul 9, 2024

Deployed

Edit: And unfrozen

@yolile
Copy link
Member

yolile commented Jul 9, 2024

Fixed in 0a88662 (had to use https not HTTP)

Cool, thanks, I only tried setting the browser user agent and similar (without success)

@jpmckinney
Copy link
Member Author

Job automatically started, so we'll see what errors occur, if any.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants