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

Download zip failed, return status code 403 #9

Open
Jechin opened this issue Jun 6, 2023 · 2 comments
Open

Download zip failed, return status code 403 #9

Jechin opened this issue Jun 6, 2023 · 2 comments

Comments

@Jechin
Copy link

Jechin commented Jun 6, 2023

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?

@Phillweston
Copy link

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

@Phillweston
Copy link

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

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

No branches or pull requests

2 participants