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

[PROD] Ingest Appeal Docs #2007

Closed
szabozoltan69 opened this issue Jan 17, 2024 · 5 comments
Closed

[PROD] Ingest Appeal Docs #2007

szabozoltan69 opened this issue Jan 17, 2024 · 5 comments
Assignees
Labels

Comments

@szabozoltan69
Copy link
Contributor

szabozoltan69 commented Jan 17, 2024

Issue

Recently the ingest_appeal_docs job does not run fine.
Without a header hack (of personal cookie data) the scraping of www.ifrc.org/appeals/ gives:
'reason': 'Forbidden',
'status': 403
(Also pip install brotlipy is needed for the successful decompression of the data.)

The bigger issue is that why is that failure invisible in cronjob items? Normally an erroneous run should be seen there and give a big warning message.

@batpad @thenav56

@szabozoltan69
Copy link
Contributor Author

We could use such API endpoints instead of scraping:
https://go-api.ifrc.org/api/PublicSiteAppeals?Appealnumber=MDRKZ012&Hidden=false

@tovari
Copy link

tovari commented Jan 23, 2024

@arunissun, would you mind to compare staging and prod data of the 'appeal_document' endpoint?

@szabozoltan69
Copy link
Contributor Author

Some differences can be; prod and staging count:

postgres=> select count(*) from api_appealdocument;
 count 
-------
  8126

postgres=> select count(*) from api_appealdocument;
 count 
-------
  8133

@arunissun
Copy link

@tovari I will check the staging and prod data for appeal documents

@tovari
Copy link

tovari commented Jan 26, 2024

Thanks @arunissun for the analysis. Looks like the scraper doesn't work well anymore on prod (there are missing docs from 2024).

Image

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

No branches or pull requests

3 participants