Sentry: Support upload of GZIPped artifacts through the API

Created on 18 Nov 2016  路  21Comments  路  Source: getsentry/sentry

Hi, would it be possible to upload GZIPped artifacts through the sentry API when the upload is done with the Header Content-Encoding: gzip?

Basically if that header is present during upload Sentry would unzip the received artifact after the upload is complete (ex: a sourcemap) and keep the same name.

Most helpful comment

@kmiyashiro I have not fixed this yet, but definitely plan on doing so soon. Possibly this week.

All 21 comments

You can already do this with the header parameter specified here: https://docs.sentry.io/api/releases/post-release-files/

Note that it's a parameter on the request, NOT an actual header on the request, if that makes sense.

@mattrobenolt thank you for the quick reply!
I tried this but without luck:

var formData = {
  name: urljoin(this.sentrySettings.publicUrl, filePath),
  file: fs.createReadStream(fileName),
  header: 'Content-Encoding:gzip',
};

Still seeing this:
screen shot 2016-11-18 at 15 47 55

Is this on sentry.io?

yes

Mind emailing into support@ so I can take a look? :)

Sure thing mate, will email right now, thanks!

Any updates on this?

@kmiyashiro I have not fixed this yet, but definitely plan on doing so soon. Possibly this week.

Reopening since this was a thing I thought worked, which doesn't. Bad mistake considering I wrote the code too. :(

馃帀 馃帀 馃帀

welp, something here wasn't great. Will need to try again.

Could I ping you for an update?

Hi @mattrobenolt sorry for bothering you, but do you know if this is still getting fixed?

@mattrobenolt Does this mean it's impossible to upload gzipped files? This is slowing down deployment considerably. Can we help in any way getting this fixed?

Any update @mattrobenolt?

Could I ask again for an update on this @mattrobenolt?

Looking forward for gzip support in Sentry, it will make things simple

To the many people waiting for this issue to move forward: did you find a service (and if so, which?) that you'd recommend for features/support/community?

My email is open if not comfortable to reply here.

Has anyone found a workaround for this?

I'm told that #9238 should have fixed this. Will verify and close if that's the case and investigate more otherwise.

Closing this issue due to staleness. Feel free to comment here if you think we should still work on this.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

fatagun picture fatagun  路  4Comments

dkarlovi picture dkarlovi  路  4Comments

phiresky picture phiresky  路  3Comments

nickolaskraus-wf picture nickolaskraus-wf  路  3Comments

dcramer picture dcramer  路  4Comments