# iOS sync broke due to network request failing with Dropbox

**URL:** <https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915>\
**Category:** Support\
**Created:** [2 May 2024 20:03 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915 "2024-05-02T20:03:31Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![worker7](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@worker7](https://discourse.joplinapp.org/u/worker7)\
**Post date:** [2 May 2024 20:03 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/1 "2024-05-02T20:03:31Z")

</div>

### Operating system

iOS

### Joplin version

12.14.6

### Sync target

Dropbox

### What issue do you have?

Today the synchronization on iOS stopped working. Looking at the logs it looks like the network request fails.  
I deleted the App and resynced the target. The synching works as it should be until the Desktop app make its first update. Once that happens the network errors start showing up.

```auto
05-02T21:16:07: Synchronizer: "TypeError: Network request failed
TypeError: Network request failed
    at anonymous (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:11103:33)
    at apply (native)
    at anonymous (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:8734:26)
    at _callTimer (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:8682:17)
    at callTimers (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:8829:19)
    at apply (native)
    at __callFunction (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:1827:36)
    at anonymous (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:1666:31)
    at __guard (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:1778:15)
    at callFunctionReturnFlushedQueue (/Users/laurent/Library/Developer/Xcode/DerivedData/Joplin-ewsyxzklwwggmtdeyavpfmrkhqhv/Build/Intermediates.noindex/ArchiveIntermediates/Joplin/BuildProductsPath/Release-iphoneos/main.jsbundle:1665:21)"
05-02T21:16:07: Synchronizer: "Sync: finished: Synchronisation finished [1714677343589]"

```

---

<div class="post-metadata">

**Author:** ![reid](https://avatars.discourse-cdn.com/v4/letter/r/439d5e/32.png) [@reid](https://discourse.joplinapp.org/u/reid)\
**Post date:** [2 May 2024 21:01 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/2 "2024-05-02T21:01:30Z")

</div>

I don't have much to add, but I just got hit with this error too. I was having problems syncing from my phone to the desktop app. Joplin was not reporting any errors in the UI and was saying that syncing was complete, but the notes were not updating. I noticed that dropbox had accidentally been uninstalled from my phone, so I reinstalled it. However, it still fails to sync and when I look at the logs I see the same error message.

---

<div class="post-metadata">

**Author:** ![redfox](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@redfox](https://discourse.joplinapp.org/u/redfox)\
**Post date:** [3 May 2024 05:04 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/3 "2024-05-03T05:04:30Z")

</div>

Same here - been happily using Joplin for several years, but yesterday iPhone sync failed and I can't get it to work any more. Logs show the same "network connection failed" error. Same version of Joplin iOS - I'm guessing an update went through yesterday?

I tried deleting the app and reinstalling, which did not fix it, so now none of my notes are on my phone at all 😢

---

<div class="post-metadata">

**Author:** ![heojaehun](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/heojaehun/32/21486_2.png) [@heojaehun](https://discourse.joplinapp.org/u/heojaehun)\
**Post date:** [3 May 2024 07:53 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/4 "2024-05-03T07:53:35Z")

</div>

I have the same problem.  
I'm using joplin in exactly the same environment as worker7.  
I got the same log as the one posted by worker7.

---

<div class="post-metadata">

**Author:** ![telecaster](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@telecaster](https://discourse.joplinapp.org/u/telecaster)\
**Post date:** [3 May 2024 14:22 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/5 "2024-05-03T14:22:25Z")

</div>

Experiencing the same problem

---

<div class="post-metadata">

**Author:** ![stephenc](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@stephenc](https://discourse.joplinapp.org/u/stephenc)\
**Post date:** [3 May 2024 17:03 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/6 "2024-05-03T17:03:16Z")

</div>

I have the same issue. iPhone and desktop version are syncing, but iPad is not syncing. Started seeing these errors 4/29 08:17:58  
iPad is running Joplin 12.14.6  
iPod OS version 17.4.1

---

<div class="post-metadata">

**Author:** ![worker7](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@worker7](https://discourse.joplinapp.org/u/worker7)\
**Post date:** [3 May 2024 18:30 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/7 "2024-05-03T18:30:00Z")

</div>

I tried using MITM proxy to intercept the network calls but didn't see any traffic.  
I then put my phone in airplane mode and tried again to sync resulting in the same error. Looks like the request never is made (or at least I would have expected a different error if the network is down)

---

<div class="post-metadata">

**Author:** ![personalizedrefriger](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/personalizedrefriger/32/13210_2.png) [@personalizedrefriger](https://discourse.joplinapp.org/u/personalizedrefriger)\
**Post date:** [3 May 2024 18:30 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/8 "2024-05-03T18:30:18Z")

</div>

I'm able to reproduce this on an iOS simulator. For me, the failing fetch is requesting `/info.json` from Dropbox. If I use the [`requestToCurl_`](https://github.com/laurent22/joplin/blob/57c316a591a9631efe20117f7ce7fbbdff4fac8b/packages/lib/DropboxApi.js#L53) debug method to convert the request to a CURL command\[1\]. If I then run this from a terminal, the request is successful.

The failing request seems to be using React Native's `fetch` ([on this line](https://github.com/laurent22/joplin/blob/57c316a591a9631efe20117f7ce7fbbdff4fac8b/packages/app-mobile/utils/shim-init-react.js#L148)) (rather than `fetchBlob` or `uploadBlob`).

**Edit** : I've created a [GitHub issue for this](https://github.com/laurent22/joplin/issues/10396).  
**Edit 2** : I've reported the issue on [the Dropbox forum](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/GET-request-to-files-download-fails-with-quot-The-network/m-p/768274/highlight/true#M33573). ( **Edit 4** : It was marked as spam. **Edit 5** : It has been unmarked as spam.).  
**Edit 3** : [Pull request](https://github.com/laurent22/joplin/pull/10400/)

* * *

1. The CURL request is similar to (may have typos): `curl -X GET -H 'Dropbox-API-Arg: {"path": "/info.json"}' -H 'Authorization: Bearer TOKEN_HERE' -H 'Content-Type: application/octet-stream' https://content.dropboxapi.com/2/files/download`

---

<div class="post-metadata">

**Author:** ![redfox](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@redfox](https://discourse.joplinapp.org/u/redfox)\
**Post date:** [4 May 2024 20:47 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/9 "2024-05-04T20:47:20Z")

</div>

Thanks for looking into this so quickly - you don't realise how dependent you've become upon an app until something goes wrong. At least I still have my data on my laptop!

---

<div class="post-metadata">

**Author:** ![roman\_r\_m](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/roman_r_m/32/3297_2.png) [@roman\_r\_m](https://discourse.joplinapp.org/u/roman_r_m)\
**Post date:** [4 May 2024 20:48 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/10 "2024-05-04T20:48:40Z")

</div>

> [@personalizedrefriger](#):
>
> **Edit 2** : I've reported the issue on [the Dropbox forum](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/GET-request-to-files-download-fails-with-quot-The-network/m-p/768274/highlight/true#M33573)

FYI - it's not opening for me:

> The message you are trying to access is not available.

---

<div class="post-metadata">

**Author:** ![personalizedrefriger](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/personalizedrefriger/32/13210_2.png) [@personalizedrefriger](https://discourse.joplinapp.org/u/personalizedrefriger)\
**Post date:** [4 May 2024 21:13 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/11 "2024-05-04T21:13:09Z")

</div>

> [@roman\_r\_m](#):
>
> FYI - it's not opening for me:

It looks like it was marked as spam. I suspect this is because my account is new and I included links to this forum post and Joplin's GitHub.

> **Content of the support request with links removed.**
>
> ![screenshot: Marked as spam. If you believe this is an error, submit an abuse report.](https://canada1.discourse-cdn.com/flex028/uploads/cozic/original/3X/6/7/67db001446f3ec533d9a9894173e50eeaa23259a.png)
> 
> I've clicked the "abuse report" link and filled out the form. I've also tried re-posting without links.
> 
> > **Content of the support request with links removed.**
> >
> > Hi,  
> >   
> > The Joplin note taking app uses Dropbox's HTTP API to upload and download files. Since a few days ago, some of our its requests are failing with "The network connection was lost".
> > 
> > The failing request downloads files from Dropbox using a GET request to `content.dropboxapi.com/2/files/download`:
> > 
> > ```js
> > fetch(
> > "https://content.dropboxapi.com/2/files/download", 
> > {
> > "headers": {
> > "Dropbox-API-Arg": "{\"path\":\"/info.json\"}",
> > "Authorization": "Bearer " + API_TOKEN, 
> > "Content-Type": "application/octet-stream" 
> > },
> > "method":"GET"
> > }
> > )
> > 
> > ```
> > 
> > Sometimes, the above fetch does work. However, I can reproduce the failure consistently by sending the above request twice, but only in some environments:
> > 
> > - Running code from the Safari development tools, inspecting a WebView embedded in Joplin.
> > - Running code from the Chrome development tools, connected to React Native Hermes.
> > 
> > I can't reproduce this when using the same code in a NodeJS REPL or the Firefox JavaScript console.
> > 
> > The examples in the Dropbox documentation send POST rather than GET requests to files/download. Switching to a POST request does seem to fix the issue on Android. However, it still fails on iOS.
> > 
> > Another post on this forum suggests that fetch on iOS doesn't support sending POST requests with an empty body. Dropbox doesn't seem to allow a non-empty body for this request.
> > 
> > Is this forum the correct place to be asking for help with this issue? Is there a way to continue using a GET request to /files/download to download files?
> > 
> > **Notes** :
> > 
> > - The original version of this post was marked as spam, perhaps due to links to Joplin's source code and issue tracker. These links have been removed and can be provided on request.
> > - Joplin uses React Native 0.71. The issue still happens after upgrading to React Native 0.73.8.

However, I've also received an email with the subject "Dropbox support chat" that states

> Your question has been received by our support team. We’ll get in touch soon with a solution or if we need more details.

---

<div class="post-metadata">

**Author:** ![Cotillion](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@Cotillion](https://discourse.joplinapp.org/u/Cotillion)\
**Post date:** [4 May 2024 21:24 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/12 "2024-05-04T21:24:13Z")

</div>

> [@redfox](#):
>
> you don't realise how dependent you've become upon an app until something goes wrong

Thank you for putting my thoughts into words!  
I have the same issue. Didnt notice it at first, but after trying everything including a reinstall of the app, the problem persists. Now im getting nervous since my whole workflow is based on multiple devices working together

---

<div class="post-metadata">

**Author:** ![worker7](https://avatars.discourse-cdn.com/v4/letter/w/2bfe46/32.png) [@worker7](https://discourse.joplinapp.org/u/worker7)\
**Post date:** [6 May 2024 09:22 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/13 "2024-05-06T09:22:12Z")

</div>

I got a few correct syncs again. I am uncertain whether that is a fluke or if Dropbox fixed whatever they broke 🤞  
Just wanted to report some updates on the current status.

---

<div class="post-metadata">

**Author:** ![personalizedrefriger](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/personalizedrefriger/32/13210_2.png) [@personalizedrefriger](https://discourse.joplinapp.org/u/personalizedrefriger)\
**Post date:** [6 May 2024 13:52 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/14 "2024-05-06T13:52:44Z")

</div>

> [@worker7](#):
>
> I got a few correct syncs again. I am uncertain whether that is a fluke or if Dropbox fixed whatever they broke 🤞

I'm still able to reproduce the issue locally. (Thank you for checking!)

Status update:

- I've created a [workaround](https://github.com/laurent22/joplin/pull/10400) for this issue that we plan to publish soon.
- The [Dropbox forum post](https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/GET-request-to-files-download-fails-with-quot-The-network/m-p/768274/highlight/true#M33573) is no longer marked as spam. At least one other React Native app is also experiencing this issue.

---

<div class="post-metadata">

**Author:** ![telecaster](https://avatars.discourse-cdn.com/v4/letter/t/85e7bf/32.png) [@telecaster](https://discourse.joplinapp.org/u/telecaster)\
**Post date:** [6 May 2024 15:42 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/15 "2024-05-06T15:42:50Z")

</div>

Sync started working on iOS again for me in the past hour

---

<div class="post-metadata">

**Author:** ![htuncay](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/htuncay/32/21529_2.png) [@htuncay](https://discourse.joplinapp.org/u/htuncay)\
**Post date:** [6 May 2024 17:36 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/16 "2024-05-06T17:36:43Z")

</div>

Hello all, thanks for all the work, I've been using Joplin for past couple of months without any issues until this started happening. Sending my first message here to suggest an improvement.

I haven't looked at upcoming code changes to handle this API request better, but the app for me says sync "Completed" after about 24s in this case when it's actually not working. Can it also be updated to actually fail the sync in this case? I was kind of confused until I checked synchronization logs and saw the errors.

---

<div class="post-metadata">

**Author:** ![redfox](https://avatars.discourse-cdn.com/v4/letter/r/f1d935/32.png) [@redfox](https://discourse.joplinapp.org/u/redfox)\
**Post date:** [6 May 2024 20:39 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/17 "2024-05-06T20:39:32Z")

</div>

Still not working for me, alas 😢

---

<div class="post-metadata">

**Author:** ![NorcalScott](https://avatars.discourse-cdn.com/v4/letter/n/a698b9/32.png) [@NorcalScott](https://discourse.joplinapp.org/u/NorcalScott)\
**Post date:** [6 May 2024 21:47 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/18 "2024-05-06T21:47:18Z")

</div>

Working for me now on Windows and Android, but not on iPad - pretends to sync and shows completed with a duration of 18296s, but not actually synchronized.

---

<div class="post-metadata">

**Author:** ![eagle](https://avatars.discourse-cdn.com/v4/letter/e/ba8739/32.png) [@eagle](https://discourse.joplinapp.org/u/eagle)\
**Post date:** [7 May 2024 08:23 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/19 "2024-05-07T08:23:28Z")

</div>

Same issue here. Dropbox sync broken.

iOS 17.4.1 - Joplin 12.14.6

---

<div class="post-metadata">

**Author:** ![personalizedrefriger](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/personalizedrefriger/32/13210_2.png) [@personalizedrefriger](https://discourse.joplinapp.org/u/personalizedrefriger)\
**Post date:** [7 May 2024 21:16 UTC](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915/20 "2024-05-07T21:16:39Z")

</div>

A [workaround](https://github.com/laurent22/joplin/commit/d6480e50d205526a5434ad7f7565bfafa085f63b) has been merged. On iOS, it should be available on the App Store as version 12.14.7.

[Next page](https://discourse.joplinapp.org/t/ios-sync-broke-due-to-network-request-failing-with-dropbox/37915.md?page=2)
