OneDrive sync issue

Joplin version: 1.0.175 (prod, Linux)
Linux: Arch (Linux aurora 5.4.12-arch1-1 #1 SMP PREEMPT Tue, 14 Jan 2020 21:44:31 +0000 x86_64 GNU/Linux)

Having issues syncing with OneDrive on Linux. Similar behavior on my Windows instance. Has been working flawlessly. Seemed to start after attaching pdfs to a note. To troubleshoot, I Created an empty Joplin instance and used the sync target “OneDrive Dev” because it conveniently creates a new folder name under OneDrive App directory.

To recreate on Linux

New Joplin user instance
flags.txt with debug entries copied to ~/.config/joplin-desktop
Open Joplin
Remove default notebook
Authenticate to OneDrive successfully
Create new notebook and note
Attach pdf to the note.
syncs successfully.
Turn on encryption
Start sync
Error occurs

2020-01-17 10:33:48: “Starting scheduled sync”
2020-01-17 10:33:48: “Sync: starting: Starting synchronisation to target 4… [1579275228331]”
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.sync”
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.lock”
2020-01-17 10:33:48: “mkdir /drive/root:/Apps/JoplinDev/.resource”
2020-01-17 10:33:48: “list /drive/root:/Apps/JoplinDev”
2020-01-17 10:33:49: “get /drive/root:/Apps/JoplinDev/.sync/version.txt”
2020-01-17 10:33:49: “put /drive/root:/Apps/JoplinDev/.sync/version.txt”, “null”
2020-01-17 10:33:49: “stat /drive/root:/Apps/JoplinDev/78336b687e2545d7b71154e321ab7290.md”
2020-01-17 10:33:50: “get /drive/root:/Apps/JoplinDev/78336b687e2545d7b71154e321ab7290.md”
2020-01-17 10:33:50: “Sync: updateRemote: local has changes: Resource: (Local 78336b687e2545d7b71154e321ab7290): (Remote 78336b687e2545d7b71154e321ab7290.md)”
2020-01-17 10:33:51: “put /drive/root:/Apps/JoplinDev/.resource/78336b687e2545d7b71154e321ab7290”, “{“path”:”/home/temp/.config/joplin-desktop/resources/78336b687e2545d7b71154e321ab7290.crypted",“source”:“file”}"
2020-01-17 10:33:51: "SyntaxError: OneDriveApi::exec: Cannot parse JSON error:

Runtime Error body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;} p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px} b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px} H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red } H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon } pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt} .marker {font-weight: bold; color: black;text-decoration: none;} .version {color: gray;} .error {margin-bottom: 10px;} .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; } @media screen and (max-width: 639px) { pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; } } @media screen and (max-width: 479px) { pre { width: 280px; } }
<body bgcolor="white">

        <span><H1>Server Error in '/' Application.<hr width=100% size=1 color=silver></H1>

        <h2> <i>Runtime Error</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
        <br><br>

        <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>

See here: https://github.com/laurent22/joplin/issues/2166