turtl-backup icon indicating copy to clipboard operation
turtl-backup copied to clipboard

Other server

Open xmihal03 opened this issue 7 years ago • 3 comments

Hi, I tried to access server https://api.turl.it/v2 and backup failed on "Page not found.". So I created another account on server https://api.framanotes.org and there it works.

xmihal03 avatar Jul 22 '18 15:07 xmihal03

Hi,

You need to find the equivalent of https://api.framanotes.org/sync/full/

Have you tried https://api.turtl.it/v2/sync/full? https://api.turtl.it/sync/full?

In your browser's network tab, you should see it, it should be one of the first request done while loading your notes.

JulienPalard avatar Jul 23 '18 06:07 JulienPalard

@xmihal03 have you tried specifying the server url https://api.turl.it/v2/ (with the ending /) ?

sirfoga avatar Jul 23 '18 09:07 sirfoga

that's right, trailing slash can help:

>>> from urllib.parse import urljoin
>>> urljoin('https://api.turl.it/v2', 'sync/full')
'https://api.turl.it/sync/full'
>>> urljoin('https://api.turl.it/v2/', 'sync/full')
'https://api.turl.it/v2/sync/full'

JulienPalard avatar Jul 23 '18 09:07 JulienPalard