Closed eliselavy closed 1 year ago
Try many ways to access to the raw file.
Request expired at a certain time
<Error>
<link type="text/css" rel="stylesheet" id="dark-mode-custom-link"/>
<link type="text/css" rel="stylesheet" id="dark-mode-general-link"/>
<style lang="en" type="text/css" id="dark-mode-custom-style"/>
<style lang="en" type="text/css" id="dark-mode-native-style"/>
<style lang="en" type="text/css" id="dark-mode-native-sheet"/>
<Code>AccessDenied</Code>
<Message>Request has expired</Message>
<X-Amz-Expires>3600</X-Amz-Expires>
<Expires>2023-04-14T18:14:12Z</Expires>
<ServerTime>2023-04-17T08:07:42Z</ServerTime>
<RequestId>X31A5F95RGH14Q6Y</RequestId>
<HostId>kI2pW2UxRc8Ww5Gfg/lpK7/GMFbNeKzJJUVmCfhsClKyKcDO6GKHdfIlRGPXy6rZyLhl3QVgZ7I=</HostId>
</Error>
curl -X POST \
-H "Accept: application/vnd.git-lfs+json" \
-H "Content-type: application/json" \
-d '{"operation": "download", "transfer": ["basic"], "objects[{"oid":"b82960c2385ba4f725d02a55c0f36825aabfd08151c71aea0eef80f0364b946e", "size": 230309449}]}' \
https://github.com/jdh-observer/BuWvtJFxh3wy.git/info/lfs/objects/batch
{
"message": "This repository is over its data quota. Account responsible for LFS bandwidth should purchase more data packs to restore access.",
"documentation_url": "https://docs.github.com/articles/purchasing-additional-storage-and-bandwidth-for-a-personal-account/"
}
curl -X POST \
-H "Accept: application/vnd.git-lfs+json" \
-H "Content-type: application/json" \
-d '{"operation": "download", "transfer": ["basic"], "objects": [{"oid": "f971e2b9d280b8c146b144a32b9d64b37fecea28c5435749fd34e328802fb7d1", "size":230309640}]}' \
https://github.com/eliselavy/lfs_poc.git/info/lfs/objects/batch
{
"objects": [
{
"oid": "f971e2b9d280b8c146b144a32b9d64b37fecea28c5435749fd34e328802fb7d1",
"size": 230309640,
"actions": {
"download": {
"href": "https://github-cloud.githubusercontent.com/alambic/media/573956802/f9/71/f971e2b9d280b8c146b144a32b9d64b37fecea28c5435749fd34e328802fb7d1?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIMWPLRQEC4XCWWPA%2F20230417%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230417T083010Z&X-Amz-Expires=3600&X-Amz-Signature=c3d3ce50adffa3fd2b43a1ec14f1efe66b110c3b3793c8241ea75cf638b2ed16&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=627979987&token=1",
"expires_at": "2023-04-17T09:30:10Z",
"expires_in": 3600
}
}
}
]
}
https://raw.githubusercontent.com/jdh-observer/BuWvtJFxh3wy/main/article.ipynb The required keys are:
version
is a URL that identifies the pointer file spec. Parsers MUST use simple string comparison on the version, without any URL parsing or normalization. It is case sensitive, and %-encoding is discouraged.oid
tracks the unique object id for the file, prefixed by its hashing method: {hash-method}:{hash}. Currently, only sha256 is supported. The hash is lower case hexadecimal.size
is in bytes.About the message received
=> Every account using Git Large File Storage receives 1 GB of free storage and 1 GB a month of free bandwidth. If the bandwidth and storage quotas are not enough, you can choose to purchase an additional quota for Git LFS.