subhamx / overleaf_sync_with_git Goto Github PK
View Code? Open in Web Editor NEW🤖 A GitHub action to take backups from OverLeaf which is an Online LaTeX Editor.
License: Apache License 2.0
🤖 A GitHub action to take backups from OverLeaf which is an Online LaTeX Editor.
License: Apache License 2.0
cookie一般七天会过期,能否在Secret里保存Overleaf的账号密码,自动获取cookie,或者不使用cookie走账号密码
Is it possible to sync github content to overleaf?
tonight the gh action i use to backup my projects broke.
i first thought the cookie had timed out, but updating the cookie secret did nothing
i decided to manually execute the curl command from the entrypoint.sh and when i used the encoded cookie (or no cookie at all ) i got an html page with the text: Restricted, sorry you don’t have permission to load this page.
when usind the decoded cookie i got the following traceback from curl (in verbose mode)
* Trying 34.120.52.64:443...
* Connected to www.overleaf.com (34.120.52.64) port 443 (#0)
* ALPN: offers h2
* ALPN: offers http/1.1
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_256_GCM_SHA384
* ALPN: server accepted h2
* Server certificate:
* subject: CN=overleaf.com
* start date: Sep 27 19:24:03 2022 GMT
* expire date: Dec 26 19:24:02 2022 GMT
* subjectAltName: host "www.overleaf.com" matched cert's "www.overleaf.com"
* issuer: C=US; O=Google Trust Services LLC; CN=GTS CA 1D4
* SSL certificate verify ok.
* Using HTTP2, server supports multiplexing
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* h2h3 [:method: GET]
* h2h3 [:path: /project/XXXXX/download/zip]
* h2h3 [:scheme: https]
* h2h3 [:authority: www.overleaf.com]
* h2h3 [user-agent: curl/7.85.0]
* h2h3 [accept: */*]
* h2h3 [overleaf_session2=s:XXXX-XXXX-XXXX]
* Using Stream ID: 1 (easy handle 0x5576be4e1820)
> GET /project/XXXXX/download/zip HTTP/2
> Host: www.overleaf.com
> user-agent: curl/7.85.0
> accept: */*
> overleaf_session2=s:XXXX-XXXX-XXXX
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* old SSL session ID is stale, removing
< HTTP/2 400
< content-type: text/html; charset=UTF-8
< referrer-policy: no-referrer
< content-length: 273
< date: Tue, 04 Oct 2022 11:58:00 GMT
<
* HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
* Connection #0 to host www.overleaf.com left intact
curl: (92) HTTP/2 stream 0 was not closed cleanly: PROTOCOL_ERROR (err 1)
did overleaf change something, so different headers are required to download the project content?
I deployed an overleaf server using overleaf/toolkit. I failed to sync after only adding the environment variable OVERLEAF_HOST
and the corresponding secret. I found out my cookie name is overleaf.sid
, not overleaf_session2
. Therefore, I forked a new branch and updated the Cookie
name in src/entrypoint.sh
. In this way, I successfully synchronized.
What I want to say is that it is not that simple for a self-hosted overleaf to sync.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.