Base solution for your next web application
Ends in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

CreateOrUpdateUser issue #7737


User avatar
0
Cellofane_admin created

Hi Team,

While creating the user from tenant app, im getting below error in my local as well in QA env when we do from India location, if we check same thing from same user from US location its working fine.

I verified im not able to find which file its failing ?

Could you please tell me how can identify the file from thi error and what is the cause of this issue ?

ERROR 2019-09-26 01:18:16,260 [4 ] Mvc.ExceptionHandling.AbpExceptionFilter - The DateTime represented by the string '0000-12-31T18:06:32.000Z' is not supported in calendar 'System.Globalization.GregorianCalendar'. System.FormatException: The DateTime represented by the string '0000-12-31T18:06:32.000Z' is not supported in calendar 'System.Globalization.GregorianCalendar'. at System.DateTimeParse.Parse(ReadOnlySpan`1 s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles) at Newtonsoft.Json.Converters.IsoDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in //Src/Newtonsoft.Json/Converters/IsoDateTimeConverter.cs:line 190 at Abp.Json.AbpDateTimeConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) in D:\Github\aspnetboilerplate\src\Abp\Json\AbpDateTimeConverter.cs:line 22 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(JsonConverter converter, JsonReader reader, Type objectType, Object existingValue) in //Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs:line 2159 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target) in //Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs:line 1032 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id) in //Src/Newtonsoft.Json/Serialization/JsonSerializerInternalReader.cs:line 2386 --- End of stack trace from previous location where exception was thrown --- at Microsoft.AspNetCore.Mvc.Formatters.JsonInputFormatter.ReadRequestBodyAsync(InputFormatterContext context, Encoding encoding) at Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinder.BindModelAsync(ModelBindingContext bindingContext) at Microsoft.AspNetCore.Mvc.ModelBinding.ParameterBinder.BindModelAsync(ActionContext actionContext, IModelBinder modelBinder, IValueProvider valueProvider, ParameterDescriptor parameter, ModelMetadata metadata, Object value) at Microsoft.AspNetCore.Mvc.Internal.ControllerBinderDelegateProvider.<>c__DisplayClass0_0.<


4 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    What are the contents of the parameters passed to the backend application in the US and India?(You can view them in the chrome network panel)

    At the same time, do you set Clock.Provider = ClockProviders.Utc;

  • User Avatar
    0
    Cellofane_admin created

    Could you please tell in which file i have to change this, is it global setting or in each module we have to chnage ?

  • User Avatar
    0
    maliming created
    Support Team

    If your application does not plan to support multiple time zones then you don't need to set it up. Its documentation: https://aspnetboilerplate.com/Pages/Documents/Timing

    What are the contents of the parameters passed to the backend application in the US and India?(You can view them in the chrome network panel)

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because it has not had recent activity for a long time.