phrase / ios-sdk

Phrase Over the Air iOS SDK
https://phrase.com
Other
14 stars 3 forks source link

Phrase App Inconsistency update error #61

Closed swayambhu-banerjee closed 11 months ago

swayambhu-banerjee commented 1 year ago

The update translation method throws following error

PhraseUpdateError(underlyingErrors: [PhraseSDK.PhraseInternalError.inconsistentUpdate] SDK Version : 4.2.0 Xcode version: 14.3 Project URL: https://app.phrase.com/accounts/decathlon/distributions/apac-chopper-app

Code Snippet

Screenshot 2023-08-24 at 8 39 06 PM
winkelsdorf commented 1 year ago

Hello @swayambhu-banerjee!

Thank you for the report. If you do a clean install on the Device/Simulator does the error persist? Or does it happen irregularly?

We throw this error only when one of the files requested cannot be retrieved. This can happen e.g. when you update the OTA release while requesting the files.

Let me know if you observe this again!

swayambhu-banerjee commented 1 year ago

Hello @winkelsdorf If i do a clean install on my device the error comes up again. It is inconsistently coming up. I tried downloading the release from the Phrase dashboard. It was downloaded didn't face any issue there. Also I checked we are not updating the OTA release while requesting the files.

winkelsdorf commented 1 year ago

@swayambhu-banerjee Thank you for checking! At the moment we can't recreate a problem, but we'll try to rule it out in the future with further tests.

hahmed-dev commented 12 months ago

Hi @swayambhu-banerjee I was looking into this issue from backend perspective to see if the OTA API the SDK is using has something to do with the cause of this error.

As you have mentioned this error occurs inconsistently we were investigating what can be the source of such variating response. In order to investigate it further and rule out possibilities like iOS SDK not receiving all the files its supposed to from OTA server (which can be one of the causes) we wanted to get some more information specifically around the network logs. Would it be possible for you to reproduce this issue and share the network logs? Charles is one of the tools that can be used for this.

With more detail information around http request/response we might be able to narrow down on the origin of this issue.

carstenapploft commented 11 months ago

Hi @swayambhu-banerjee ,

we have been able to reproduce the inconsistentUpdate error and have released a fix with release 4.3.4.

swayambhu-banerjee commented 11 months ago

Hello everyone will test this out.. Thanks for the support..

theSoenke commented 11 months ago

Hi @swayambhu-banerjee, this should now be resolved in the latest release https://github.com/phrase/ios-sdk/releases/tag/4.3.4 Could you give it a try? This issue could occur before in some rare cases when fetching one of the strings or stringsdict files would fail due to for example a network error