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

Bulk upload of source maps? #1

Open
FarReachTravis opened this issue Sep 14, 2023 · 5 comments
Open

Bulk upload of source maps? #1

FarReachTravis opened this issue Sep 14, 2023 · 5 comments

Comments

@FarReachTravis
Copy link

We have ~1200 source map files... Sounds like there is a limit of 500 file uploads, and 500+ POSTs seems like an awful lot to do, anyway... It would be great if there were a way to upload a single zip file of all the source maps.

@ThomasArdal
Copy link
Member

There's an API limit of 500 requests per minute. But I guess if you were to upload 1200 source map files, that couldn't be done within a minute anyway. I see why this would not be a very nice solution using this action, since you'd have to add it 1200 times. We don't have any alternative than to upload them one after another, I'm afraid. Would it be possible to create a loop in PowerShell and upload them using a script action instead?

@FarReachTravis
Copy link
Author

Thanks, it sounds like we should be able to work with that.

However, it seems we have another issue- our main minified bundle apparently exceeds the maximum allowed size- I'm seeing an error:

["Maximum allowed file size is 5242880 bytes."],"MinifiedJavaScript":["Maximum allowed file size is 1048576 by
tes."]

Do you know of any way around this?

@ThomasArdal
Copy link
Member

How large are your minified javascript and source map files in this case?

@FarReachTravis
Copy link
Author

4564 KB for the minified file (the error message tells me it's 5242880 bytes), and the map file is 16155 KB.

@ThomasArdal
Copy link
Member

The current maximum file size for minified javascript files is 1MB and 5 MB for the source map file (the 5242880 bytes you are referring to there is the validation error for the source map).

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

No branches or pull requests

2 participants