René's URL Explorer Experiment


Title: Crash when an asset doesn't exist (returns 404 response) · Issue #129 · josegonzalez/python-github-backup · GitHub

Open Graph Title: Crash when an asset doesn't exist (returns 404 response) · Issue #129 · josegonzalez/python-github-backup

X Title: Crash when an asset doesn't exist (returns 404 response) · Issue #129 · josegonzalez/python-github-backup

Description: I've just started using this tool to backup my Github account, including all starred repositories. I ran into an issue where somehow an asset link 404ed (not sure why that would happen as any asset should be available from Github). In th...

Open Graph Description: I've just started using this tool to backup my Github account, including all starred repositories. I ran into an issue where somehow an asset link 404ed (not sure why that would happen as any asset...

X Description: I've just started using this tool to backup my Github account, including all starred repositories. I ran into an issue where somehow an asset link 404ed (not sure why that would happen as any a...

Opengraph URL: https://github.com/josegonzalez/python-github-backup/issues/129

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Crash when an asset doesn't exist (returns 404 response)","articleBody":"I've just started using this tool to backup my Github account, including all starred repositories. I ran into an issue where somehow an asset link 404ed (not sure why that would happen as any asset should be available from Github). In this case, the script crashed on `urllib.error.HTTPError: HTTP Error 404: Not Found` and could not continue.\r\n\r\n404 responses on assets should probably be handled the same way a 404 is handled on a repo, e.g. it should print that it's skipping that asset and continue.\r\n\r\nFor reference, here is the output:\r\n\r\n```\r\nCloning reicast-emulator repository from https://*****:x-oauth-basic@github.com/reicast/reicast-emulator.git to /Users/bbaron/tmp/github-backup/starred/reicast/reicast-emulator/repository\r\nRetrieving reicast/reicast-emulator issues\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/issues?per_page=100&page=1&filter=all&state=open&since=2020-01-03T22%3A21%3A33Z\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/issues?per_page=100&page=1&filter=all&state=closed&since=2020-01-03T22%3A21%3A33Z\r\nSaving 0 issues to disk\r\nRetrieving reicast/reicast-emulator pull requests\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/pulls?per_page=100&page=1&filter=all&state=open&sort=updated&direction=desc\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/pulls?per_page=100&page=1&filter=all&state=closed&sort=updated&direction=desc\r\nSaving 0 pull requests to disk\r\nRetrieving reicast/reicast-emulator milestones\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/milestones?per_page=100&page=1&state=all\r\nSaving 9 milestones to disk\r\nRetrieving einsteinx2 labels\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/labels?per_page=100&page=1\r\nWriting 64 labels to disk\r\nRetrieving reicast/reicast-emulator releases\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/releases?per_page=100&page=1\r\nSaving 7 releases to disk\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/releases/18970705/assets?per_page=100&page=1\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/releases/18607180/assets?per_page=100&page=1\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/releases/18598619/assets?per_page=100&page=1\r\nRequesting https://api.github.com/repos/reicast/reicast-emulator/releases/12856493/assets?per_page=100&page=1\r\nTraceback (most recent call last):\r\n  File \"/Users/bbaron/.platformio/penv/bin/github-backup\", line 1117, in \u003cmodule>\r\n    main()\r\n  File \"/Users/bbaron/.platformio/penv/bin/github-backup\", line 1112, in main\r\n    backup_repositories(args, output_directory, repositories)\r\n  File \"/Users/bbaron/.platformio/penv/bin/github-backup\", line 752, in backup_repositories\r\n    include_assets=args.include_assets or args.include_everything)\r\n  File \"/Users/bbaron/.platformio/penv/bin/github-backup\", line 962, in backup_releases\r\n    download_file(asset['url'], os.path.join(release_cwd, asset['name']), get_auth(args))\r\n  File \"/Users/bbaron/.platformio/penv/bin/github-backup\", line 572, in download_file\r\n    response = opener.open(request)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 531, in open\r\n    response = meth(req, response)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 641, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 563, in error\r\n    result = self._call_chain(*args)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 503, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 755, in http_error_302\r\n    return self.parent.open(new, timeout=req.timeout)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 531, in open\r\n    response = meth(req, response)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 641, in http_response\r\n    'http', request, response, code, msg, hdrs)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 569, in error\r\n    return self._call_chain(*args)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 503, in _call_chain\r\n    result = func(*args)\r\n  File \"/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/urllib/request.py\", line 649, in http_error_default\r\n    raise HTTPError(req.full_url, code, msg, hdrs, fp)\r\nurllib.error.HTTPError: HTTP Error 404: Not Found\r\n```\r\n\r\nI'm working on fixing this now and will submit a PR when I'm done. I'm new to Python, so it will probably take me a little while to figure out how to handle it properly.","author":{"url":"https://github.com/einsteinx2","@type":"Person","name":"einsteinx2"},"datePublished":"2020-01-06T14:49:38Z","url":"https://github.com/josegonzalez/python-github-backup/issues/129"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:e70c2214-9bce-9c86-9719-3730df06fa31
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB3E0:4C12B:5683AF:75E4CC:6B05E3AA
html-safe-nonce0e049d4a548b46a3e17900bc403b3215e5bb39c112bc0f35c68a3d3854af92b3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0UwOjRDMTJCOjU2ODNBRjo3NUU0Q0M6NkIwNUUzQUEiLCJ2aXNpdG9yX2lkIjoiNDMzODE0ODI2NzYyOTMzOTU2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac474026dda76f14d4b075dd324775f51f9f079fdc70960b796c29776ffbfe9d63
hovercard-subject-tagissue:545765466
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/josegonzalez/python-github-backup/129/issue_layout
twitter:imagehttps://opengraph.githubassets.com/6574026cf5a751e39047e3a16cf50c24bf55e9d9a0f336b4485594871ad92e4b/josegonzalez/python-github-backup/issues/129
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/6574026cf5a751e39047e3a16cf50c24bf55e9d9a0f336b4485594871ad92e4b/josegonzalez/python-github-backup/issues/129
og:image:altI've just started using this tool to backup my Github account, including all starred repositories. I ran into an issue where somehow an asset link 404ed (not sure why that would happen as any asset...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameeinsteinx2
hostnamegithub.com
expected-hostnamegithub.com
None9e6b0e6e5a9a8e0ddb968297ede4e2eac72d30ea174a0970eb8f22d6958e91e3
turbo-cache-controlno-preview
go-importgithub.com/josegonzalez/python-github-backup git https://github.com/josegonzalez/python-github-backup.git
octolytics-dimension-user_id65675
octolytics-dimension-user_loginjosegonzalez
octolytics-dimension-repository_id14876085
octolytics-dimension-repository_nwojosegonzalez/python-github-backup
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id14876085
octolytics-dimension-repository_network_root_nwojosegonzalez/python-github-backup
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release023691d14ad20c90d3ee61b0a0977b17dc6b6361
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/josegonzalez/python-github-backup/issues/129#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjosegonzalez%2Fpython-github-backup%2Fissues%2F129
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fjosegonzalez%2Fpython-github-backup%2Fissues%2F129
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=josegonzalez%2Fpython-github-backup
Reloadhttps://github.com/josegonzalez/python-github-backup/issues/129
Reloadhttps://github.com/josegonzalez/python-github-backup/issues/129
Reloadhttps://github.com/josegonzalez/python-github-backup/issues/129
josegonzalezhttps://github.com/josegonzalez
python-github-backuphttps://github.com/josegonzalez/python-github-backup
Codehttps://github.com/josegonzalez/python-github-backup
Issues6 (6)https://github.com/josegonzalez/python-github-backup/issues
Pull requests1 (1)https://github.com/josegonzalez/python-github-backup/pulls
Actionshttps://github.com/josegonzalez/python-github-backup/actions
Security and qualityhttps://github.com/josegonzalez/python-github-backup/security
Insightshttps://github.com/josegonzalez/python-github-backup/pulse
https://github.com/josegonzalez/python-github-backup
New issuehttps://github.com/login?return_to=https://github.com/josegonzalez/python-github-backup/issues/129
New issuehttps://github.com/login?return_to=https://github.com/josegonzalez/python-github-backup/issues/129
#130https://github.com/josegonzalez/python-github-backup/pull/130
Crash when an asset doesn't exist (returns 404 response)https://github.com/josegonzalez/python-github-backup/issues/129#top
#130https://github.com/josegonzalez/python-github-backup/pull/130
https://github.com/einsteinx2
einsteinx2https://github.com/einsteinx2
on Jan 6, 2020https://github.com/josegonzalez/python-github-backup/issues/129#issue-545765466
https://github.com/einsteinx2
einsteinx2https://github.com/einsteinx2
on Jan 6, 2020https://github.com/josegonzalez/python-github-backup/issues/129#issuecomment-571168327
einsteinx2https://github.com/einsteinx2
on Jan 6, 2020https://github.com/josegonzalez/python-github-backup/issues/129#event-2924712465
Crash when an release asset doesn't existhttps://github.com/einsteinx2/python-github-backup/commit/27441b71b6644a5de0e27bee12fc9e0c81431445
27441b7https://github.com/einsteinx2/python-github-backup/commit/27441b71b6644a5de0e27bee12fc9e0c81431445
Crash when an release asset doesn't existhttps://github.com/einsteinx2/python-github-backup/commit/da59ffe2f04bcc54865fa932286b0fb87643e6e3
da59ffehttps://github.com/einsteinx2/python-github-backup/commit/da59ffe2f04bcc54865fa932286b0fb87643e6e3
josegonzalezhttps://github.com/josegonzalez
completedhttps://github.com/josegonzalez/python-github-backup/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#130https://github.com/josegonzalez/python-github-backup/pull/130
on Jan 7, 2020https://github.com/josegonzalez/python-github-backup/issues/129#event-2928297453
Sign up for freehttps://github.com/signup?return_to=https://github.com/josegonzalez/python-github-backup/issues/129
Sign in to commenthttps://github.com/login?return_to=https://github.com/josegonzalez/python-github-backup/issues/129
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.