Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

CheckForUpdatePeriodically warning

Discussion in 'Unity IAP' started by Art-Leving, Dec 27, 2018.

  1. Art-Leving

    Art-Leving

    Joined:
    Mar 12, 2017
    Posts:
    2
    Hello,
    I get this error when i start a game in Unity editor

    i use:
    Unity 2018.2.19f1
    In app purchasing 1.20.1
     
    Last edited: Dec 28, 2018
  2. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    In what country are you located? Can you confirm that you are using IAP 1.20.1 from the Asset Store? 2.0.3 is the package manager version number.
     
  3. Art-Leving

    Art-Leving

    Joined:
    Mar 12, 2017
    Posts:
    2
    Ukraine country.
    []1.20.1] - 2018-10-5
     
    MyrDovg and Nolex like this.
  4. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you change your date setting to be MM/DD/YY ? Are you able to switch to a US locale?
     
  5. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    That is not good for none US users, unless you just want to test, if going to work.
     
  6. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    This is the only report of this behavior we have heard, I have let the IAP team know. But I doubt there will be a fix forthcoming any time soon.
     
    Antypodish likes this.
  7. kaiz12

    kaiz12

    Joined:
    Jun 1, 2013
    Posts:
    4
  8. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    The IAP team is aware, and hopefully will address the issue in an upcoming release.
     
  9. Butnaru

    Butnaru

    Joined:
    Jan 31, 2015
    Posts:
    5
    Hello everyone, i got the same error :(

    PackageUpdater::CheckForUpdatePeriodically(): Invalid Date Time String "{0}": 1/27/2019 6:29:39 PM
    UnityEditor.Purchasing.UnityIAPUpdater:CheckForUpdatePeriodically()
    ...Nothing seems to help me!
     
  10. Butnaru

    Butnaru

    Joined:
    Jan 31, 2015
    Posts:
    5
    Another error here:

    UnityEditor.BuildPlayerWindow+BuildMethodException: 2 errors
    at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x00234] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:190
    at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x0007f] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:96
    UnityEngine.GUIUtility:processEvent(Int32, IntPtr)

    ???
     
  11. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Different error, not relevant on this thread.
     
  12. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    How does it affect you? Is it crashing your game, or the Editor?
     
  13. santiandrade

    santiandrade

    Joined:
    Sep 2, 2013
    Posts:
    13
    Hi, I got the same error... I have tried to deactivate the IAP plugin, re-import it... but the error is not fixing.

    While I’m in editor this error is not affecting to the normal execution of the game, but when I try to launch in an Android device it seems not to initialize the first scene and the game is freeze. I think it could be provoked by this IAP error but I have to confirm.

    We need a solution soon, please.
     
  14. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    santiandrade likes this.
  15. N2P

    N2P

    Joined:
    Oct 11, 2018
    Posts:
    4
    PackageUpdater::CheckForUpdatePeriodically(): Invalid Date Time String "{0}": 1/31/2019 12:07:17 PM
    UnityEditor.Purchasing.UnityIAPUpdater:CheckForUpdatePeriodically()
    And another question is this, maybe it is interrelated. But some devices cannot download the assetband, this error occurs on new devices.

    Unity 2018.3.4
     
  16. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    @N2P No, the issue discussed here does not occur on devices, only in the Editor. Note the text in the error message "UnityEditor". And sorry, what is an assetband? What error occurs on new devices?
     
  17. Frolky

    Frolky

    Joined:
    Feb 17, 2017
    Posts:
    9
    Same problem after moving from .NET 3.5 to 4.0
     
    Fuad-Ahmad likes this.
  18. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, I wouldn't expect .NET version to have an impact
     
  19. sandeepsmartest

    sandeepsmartest

    Joined:
    Nov 7, 2012
    Posts:
    138
    @JeffDUnity3D Same issue here.Any workarounds?Fix needed.Thank you.
    Unity version : 2018.3.3f1
    IAP Version: 2.0.5.
    Scripting Runtime Version: .NET.4.x Equivalent
    Scripting Backend: Mono
     

    Attached Files:

  20. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    How is this affecting your project? Can you safely ignore the errors for now?
     
    sandeepsmartest likes this.
  21. sandeepsmartest

    sandeepsmartest

    Joined:
    Nov 7, 2012
    Posts:
    138
    Definitely not a problem!!! Expecting a fix(not now really) to make sure my unity editor is clean.thank you
     
    JeffDUnity3D likes this.
  22. santiandrade

    santiandrade

    Joined:
    Sep 2, 2013
    Posts:
    13
    Definitively I have checked that this error is not affecting on anything during the execution in a android/iOS build... so I won't worry about that problem. Thanks!
     
  23. PixelEnvision

    PixelEnvision

    Joined:
    Feb 7, 2012
    Posts:
    513
    I've got a fix for this on macOS (tested with 2018.3.7):

    1. Quit Unity if it's open
    2. Delete following folder: ~Library/Application Support/"Project's Company Name"/"Project's Name"
    3. Delete following file: ~Library/Preferences/unity."Project's Company Name"."Project's Name".plist
    4. Reboot your computer. (important step, I assume it clears a cache somewhere)

    When you open the project, those files will be re-generated and the error will be gone. I'm not sure if step #2 is necessary.
     
    chico_barnstorm likes this.
  24. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    this error causing resolver to stop and messup aar files.. any solution?
     
  25. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you elaborate, which resolver? Also IAP 1.22 was released yesterday
     
  26. ZeusGameLab

    ZeusGameLab

    Joined:
    Mar 13, 2019
    Posts:
    4
    Hello. Unity 2019.1.0a14 i updade IAP to version 2.0.6. And i receive same error
    upload_2019-3-21_20-12-46.png
     
  27. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Can you confirm which version of the IAP Asset package? The latest is 1.22. In the Unity Editor, go to Window/Unity IAP/IAP Updates... But unfortunately it does not look like this fix is included. I suspect your system is non-US locale?
     
  28. ZeusGameLab

    ZeusGameLab

    Joined:
    Mar 13, 2019
    Posts:
    4
    Version 1.22
    upload_2019-3-22_9-59-36.png

    Yes non-US locale. Current Local Time in Moscow, Russia
     
  29. TriNityGER

    TriNityGER

    Joined:
    Sep 1, 2017
    Posts:
    29
    I can confirm this error starts happening when upgrading the Scripting Runtime from 3.5 to 4.x. The moment I flipped the switch and the editor restarted, the error appeared in the console.

    It both happened with IAP 2.0.3 and 2.0.6.
    I use Unity 2018.3.8f1 and my locale is de-de and local time is Berlin, Germany.
     
    Fuad-Ahmad likes this.
  30. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    cant fix resolver for this error? any fix? im using unity 2018.3.8f1.. I have a lot of apps to update, this error make me crazy.. wont resolve google services and firebase wont work..already got updated IAP and using resolver 102
     
  31. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    We are working on a fix, hopefully included in the next release in a few months. Sorry for the inconvenience. If we find a solution that doesn't require an update, we will certainly let you know.
     
  32. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    this might be the reason for the pre-lunch error in googe play which relate to IAP
     
  33. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Do you have a screenshot of a pre-launch error? It is likely not related. The issue described in this thread applies to behavior in the Editor only. It's an (incorrect) prompt for the Editor to upgrade IAP (only)
     
  34. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    here the screenshot
     

    Attached Files:

  35. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
  36. telica77

    telica77

    Joined:
    Aug 27, 2017
    Posts:
    6
    Hi folks, I also get this error. Searching for a solution led me to this page. Is there any way to fix this at the moment? I am in New Zealand. Thanks.
     

    Attached Files:

  37. Untherow

    Untherow

    Joined:
    Jun 19, 2016
    Posts:
    8
    Same here. This error is repeatedly spamming my console. I too recently updated the Unity version to 2019 and project scripting runtime version to .NET 4.x. If it doesn't have impact on IAP features in builds then I can live with it.

    "PackageUpdater::CheckForUpdatePeriodically(): Invalid Date Time String "{0}": 5/20/2019 6:33:06 PM
    UnityEditor.Purchasing.UnityIAPUpdater:CheckForUpdatePeriodically()"
     
  38. Annopolus

    Annopolus

    Joined:
    Apr 15, 2015
    Posts:
    18
    Same error here:
    PackageUpdater::CheckForUpdatePeriodically(): Invalid Date Time String "{0}": 5/24/2019 12:50:11 PM
    UnityEditor.Purchasing.UnityIAPUpdater:CheckForUpdatePeriodically()

    IAP 2.0.6, Unity 2018.3.12f1.

    What maybe interesting, I had no error till I switched to .NET 4.0. I used 3.x version before and there was no error.
     
  39. heiwa-games

    heiwa-games

    Joined:
    Apr 8, 2018
    Posts:
    8
    Hi folks,

    same error here. It happens when I start my game after having updated to Unity 2019.1.4f1. Current IAP version is 2.0.6.

    My location is Germany.

    Here a screenshot of the Unity console:
    upload_2019-5-25_7-15-56.png

    Is there a fix or a workaround out by now? The first reporting was 5 months ago, I guess.

    Cheers,
    Stefan
     
  40. nemeth-regime

    nemeth-regime

    Joined:
    Feb 13, 2017
    Posts:
    40
    To stop the error from popping up just disable "Automatically check for updates" in IAP Updates. Interestingly I am stuck on IAP 1.21. I can't even update to 1.22 as when I click Install it just takes me to Unity Asset Store > My Standard Assets where it just displays "No assets".
     

    Attached Files:

    chriszul likes this.
  41. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    To upgrade, first remove the previous IAP asset, and ensure that the project still compiles. This is important. Then upgrade from the IAP tab in the Services window (menu Window/Services or Window/General/Services)
     
  42. ttesla

    ttesla

    Joined:
    Feb 23, 2015
    Posts:
    16
    Started to get the same error after upgrading from .NET3 to .NET4 in 2017.4.24f1 ... Using Turkish locale settings on Windows 10.

    Also got some weird behaviour in Bunny83's SimpleJSON library. Suddenly all of the double.TryParse() methods started to return wrong values. Such as 1.234 is returned as 1234. So I had to add invariant culture to all of these float, double parse methods. Later checked and confirmed SimpleJSON libs latest version is also did the same fix I did.

    Ok. Long story, short answer. @JeffDUnity3D , could you tell your IAP asset developer friends that, they should check these parse methods. Probably something wrong with their culture settings.
     
  43. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Yes, we are looking into this.
     
  44. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Just search for "Unity IAP" in the Asset Store window
     
  45. NortalNeis

    NortalNeis

    Joined:
    Mar 5, 2014
    Posts:
    4
    Hi, JeffDUnity3D! I'm using Unity IAP from Unity Services and I have the same error. It forced me to downgrade .NET framework and some functionality to avoid it. Is there any solution now or maybe you have any info about the timing of solving this problem?
     
  46. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    This thread is focused on the update warning in the Editor and can be safely ignored for now. If you are concerned about another issue that occurs on a device, please open a separate thread.
     
  47. chriszul

    chriszul

    Joined:
    Feb 13, 2018
    Posts:
    33
    I'm getting this same issue in editor, I'm in Ireland. Disabling update checks works for me.
     
  48. UDN_46c91c6c-aeb1-471f-87fb-917fc1db02c9

    UDN_46c91c6c-aeb1-471f-87fb-917fc1db02c9

    Joined:
    Dec 3, 2017
    Posts:
    21
    Hello, I can more or less confirm it is a .NET issue and not IAPs. I have my own DateTime conversion and it pops same error:

    FormatException: String was not recognized as a valid DateTime.
    System.DateTimeParse.Parse (System.String s, System.Globalization.DateTimeFormatInfo dtfi, System.Globalization.DateTimeStyles styles) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
    System.DateTime.Parse (System.String s) (at <ad04dee02e7e4a85a1299c7ee81c79f6>:0)
     
  49. NiallSoe

    NiallSoe

    Joined:
    Jan 30, 2018
    Posts:
    17
    Any errors like this should be treated as must fix because non-technical team members start to ignore real errors when they are conditioned to expect errors.

    This is still an issue in Unity iAP 2.0.6


    PackageUpdater::CheckForUpdatePeriodically(): Invalid Date Time String "{0}": 02/20/2020 12:15:29
    UnityEditor.Purchasing.UnityIAPUpdater:CheckForUpdatePeriodically()


    I'm running OSX from Dublin, Ireland.

    This should be quite easy to fix... but we're over a year from the original report :/
     
  50. JeffDUnity3D

    JeffDUnity3D

    Joined:
    May 2, 2017
    Posts:
    14,446
    Are you using IAP 1.23.1 ? Generally Must Fix only applies when there isn't a work around and is a crashing bug, but I understand your concern. Are you able to safely ignore the error in the meantime? That is, you are still able to build?