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

Fix for SLR Scraper Error Fixes #1779 & #1815 #1820

Merged
merged 4 commits into from
Aug 28, 2024

Conversation

pops64
Copy link
Contributor

@pops64 pops64 commented Aug 10, 2024

The Head method to check to ensure the image link was good for SLR scrapes didn't handle errors. I have now added a switch that if it errors out because of E.G DNS Resolution error it doesn't crash XBVR and should print to the log the error. Complies and SLR scrapers run with out error.

Also moved the body close for the appCover Head method to outside the if statement to ensure Body.Close() is always done per Go Docs

The Head request to check to ensure the image link was good didn't handle error. I have now added a switch that if it error out because of E.G DNS Resolution error it doesn't crash XBVR. Needs more testing has the conditions to cause the error are difficult to reproduce
@moToroTor
Copy link

As the one having the crash I would be happy to test a build but I don't see a way to get a test build.

@crwxaj crwxaj merged commit e36e375 into xbapps:master Aug 28, 2024
1 check passed
@pops64 pops64 deleted the SLR-Error-Fix branch August 28, 2024 21:37
@moToroTor
Copy link

@pops64 I'm not 100% sure this fixed it because the crash seems to still be on the HEAD, see #1779 (comment)

@pops64
Copy link
Contributor Author

pops64 commented Sep 4, 2024

Log ... It should now at least tell you why and it shouldn't crash it should just do nothing in regards to the image.

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

Successfully merging this pull request may close these issues.

3 participants