Closed zhiv1987 closed 3 years ago
When call app export more than once get the encoded result: Because gzip header is set in Get(downloadPath)
instance.Post( '/app/bd333f5b-752c-4e73-94c1-50d9782a279c/export/bd332f6b-752c-4e73-94c1-50d9782a279c', {}, 'json' ).then(function(result) { console.log(result.body); downloadPath = result.body["downloadPath"]; }).then(function() { instance.Get(downloadPath) //set gzip header .then(function(result) { console.log(result.statusCode); console.log(result.body); }) .catch(function(error) { console.log(error); }); }).then(function(result) { return instance.Post( '/app/c0cfc639-c083-4610-928f-687df94567c9/export/c0cfc639-c083-4610-928f-687df94567c9', {}, 'json') }).then(function(result) { console.log(result.body); //get encoding result downloadPath = result.body["downloadPath"]; });
Hmm, interesting, thought that was scoped to the function but I guess it's not. I'll do some digging and report back.
Thanks!
yep. it's a bug. will fix.
When call app export more than once get the encoded result: Because gzip header is set in Get(downloadPath)