I've been running into the following error since Friday 26 APR 2024: Last error: Error: On file be29de88abcd48fca162445a8d7c4762.md: Could not execute request after multiple attempts: GET hxxps : / / graph[.]microsoft[.]com/v1.0/drive/root:/Apps/Joplin/be29de88abcd48fca162445a8d7c4762.md:/content
I've encountered this error on both mac and windows, both of which are using the latest Joplin client. This morning I backed up everything from Joplin via a jex backup and began troubleshooting.
The two notes I kept having issues with included the following code (in single line or multi line code blocks)
<? php $_GET['location'] ?>
If I don't include the < or > characters the note uploads fine. If I escape those characters in the code block, the note uploads fine.
I think the parsing function needs to be checked when uploading the files to OneDrive (not sure if this happens on other cloud providers) to add in escapes for those characters during upload, and then removing the escapes once we retrieve the content, so that the code can be directly copied between notes and apps.
Did a few more variations of the code, and it always fails on the greater than or less than characters if they are not explicitly escaped via a backslash. Url encoded seems to fail occasionally as well, so it's likely getting rendered on their side.
A new note with the following content syncs for me:
This is a test note with some PHP:
```php
<? php $_GET['location'] ?>
```
I think another user solved this by enabling end-to-end encryption. If you take this approach, be sure to make a backup of all data first. (Also be aware that end-to-end encryption will make sync slower).
i didn't list mine as php since it was mixed code, so i used a raw code block with no formatting. Let me go check and see if specifying it as a php code block fixes the issue.
Also, I thought the onedrive sync method for joplin stated not to use encryption?