notion-up icon indicating copy to clipboard operation
notion-up copied to clipboard

Download zip failed, return status code 403

Open Jechin opened this issue 2 years ago • 2 comments

When notion accepts the get request, it should verify the identity through the cookie. The get of the direct request cannot be downloaded correctly. Is there any solution?

Jechin avatar Jun 06 '23 07:06 Jechin

The same error occurred to me. It seems that Notion has changed the authentication method for the cookie session.

Phillweston avatar Jan 09 '24 22:01 Phillweston

I've captured the header of the HTTP response, the server refuses to download the zip file, and the server likely requires some form of browser-based authentication or session management that isn't being replicated in your script. Also, the size of the downloaded file is incorrect.

Response headers: {'Content-Type': 'text/html', 'Content-Length': '4714', 'Connection': 'keep-alive', 'Last-Modified': 'Sat, 06 Jan 2024 01:03:04 GMT', 'x-amz-server-side-encryption': 'AES256', 'Accept-Ranges': 'bytes', 'Server': 'AmazonS3', 'Date': 'Tue, 09 Jan 2024 21:42:02 GMT', 'ETag': '"f309608625dc9750dc5407c1c03ed7a9"', 'X-Cache': 'Miss from cloudfront', 'Via': '1.1 237bd7e86f7f99cead16dc4ecb5fed20.cloudfront.net (CloudFront)', 'X-Amz-Cf-Pop': 'IAD89-C2', 'X-Amz-Cf-Id': '6SAVrLdMfppG7DuBd-pgAOfeWnqjlFMfpsnoSmblIwm6fpCvDZNByw=='}
Status code: 403

Phillweston avatar Jan 09 '24 22:01 Phillweston