-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
File size exceeds the maximum allowed 25000 bytes #69
Comments
Related code: dockerhub-description/src/main.ts Line 7 in 22ceabb
Is the max byte limitation really necessary? |
This reverts commit 9c0e7a2. See peter-evans/dockerhub-description#69
Hi @orhun This limitation is imposed by DockerHub. The API will fail on larger sized payloads. My advice would be to either reduce the size of your readme, or create a separate file which is the reduced-size version of your readme for upload to DockerHub. You can store this in your repo and reference it with the action. |
I don't think this is true anymore. I can post to the API manually by doing;
|
So I've tested the current behaviour of DockerHub's API and the 25000 byte limit still exists, however, instead of returning an error it now just truncates the readme content to 25000 bytes. I think I will remove the 25000 limit and just allow DockerHub's API to truncate the content. |
Released as The action no longer throws an error when the 25,000 byte content limit is exceeded. The request will be sent to DockerHub's API where DockerHub will truncate it to 25,000 bytes. |
Got the error happening today. The last time I successfully pushed > 25000 bytes which got automatically truncated to 25000 bytes without an error was early Feb 2023. So sometime between then and today Docker might have changed something. The CI error:
EDIT: If i manually updated the readme, it allows >25000 bytes, so the limit only happens when using the API. |
@leojonathanoh Are you sure it is related to the size? Someone else had a similar issue recently and it might have been related to the content of the readme, not the size. See #10 (comment) |
just checked and there's no readme diff between Feb and today's, so perhaps something on their end might have changed the rules about what is a valid readme. |
worked around it by splitting the readme up for now, but i'd still prefer everything to be in the readme. we'll have to see. |
I just tested it and it seems that the API now returns 400 if the content is greater than 25000 bytes. I'm going to implement a fix to truncate readme content to 25000 bytes. |
thank you! :) |
Release |
Hello,
I have a README.md file of 39k and I can't upload it due to size limit. I'm using
dockerhub-description
action as follows:Related run: https://github.com/orhun/git-cliff/runs/7540171483
The text was updated successfully, but these errors were encountered: