Base solution for your next web application

Activities of "Jorahealth"

What is your product version? 9.2.0 What is your product type (Angular or MVC)?** Angular** What is product framework type (.net framework or .net core)? .NET CORE

We are trying to get Stripe integration working, The test webhook from Stripe portal shows it was sent sucessfully to webhook we created, but on published site we are not able to retive payment results...

There are no webhook subscriptions visible in the subscriptions table, do we need to add one, if we do how do we add, I have tried adding the created webhook from the UI but unsucessfull?

Could you help identify the issue.

Many Thanks

Thank you this is now resolved

Question

What is your product version? 9.2.0 What is your product type (Angular or MVC)?** Angular** What is product framework type (.net framework or .net core)? .NET CORE

We are trying to get Stripe integration working, When sending a Test webhook...I am getting

Test webhook error: 302 on the Stripe portal

The Error Log shows: ERROR 2021-07-05 10:20:11,094 [54 ] isively.Web.Controllers.StripeController - The webhook cannot be processed because the current timestamp is outside of the allowed tolerance. Stripe.StripeException: The webhook cannot be processed because the current timestamp is outside of the allowed tolerance.

Both Stripe and Azure where the solution is hosted are set to the same time zones...

Could you kindly advise a resolution....

Many Thanks

Answer

Resolved, Thanks

Question
  • What is your product version? 9.2.0
  • What is your product type (Angular or MVC)?** Angular**
  • What is product framework type (.net framework or .net core)? .NET CORE

We just want to upload pdf and images to azure db from our Xamarin forms mobile application. In azure db we are saving this as byte array. While uploading documents from angular web, we are converting these documents to encoded string format with the help of "readAsBinaryString" option from js file reader. Could you please suggest a way to convert these documents to corresponding string format from mobile?

Many Thanks S Chacko

Any updates on this? Many Thanks

Yes you are right, there is no call to UserConfigurationManager.GetAsync() in AppDelegate.cs. On the further investigation we found that UserConfigurationManager.GetAsync() method is calling from App.Xamal.cs file. And it returns reult as null.

So to solve this issue, we did some code modifications in AppDelegate.cs

  1. Removed delay from RegisterForRemoteNotifications() method
  2. Added a 30 seconds delay before calling return base.FinishedLaunching(app, options); in FinishedLaunching() method.

The app then works perfectly and got expected result for UserConfigurationManager.GetAsync() method. Also received FCM test notification too.

**Is this the best way to solve this? **

HI @ismcagdas

We are in testing phase and dont have many tenant users. But it happens everytime to all tenant users.

We investigated this further....

We are only getting issue with Refresh token in TENANT. **It works in HOST. **

In Tenant here is the log again....

Refresh Token issue for Tenant ADMIN

Getting StatusCode: 500, ReasonPhrase: 'Internal Server Error' for 'https://10.0.2.2:44301/api/TokenAuth/RefreshToken'

AppData Log

INFO 2021-01-06 14:10:07,486 [109 ] Microsoft.AspNetCore.Hosting.Diagnostics - Request starting HTTP/1.1 POST https://10.0.2.2:44301/api/TokenAuth/RefreshToken application/x-www-form-urlencoded; charset=utf-8 884 INFO 2021-01-06 14:10:07,501 [109 ] ft.AspNetCore.Routing.EndpointMiddleware - Executing endpoint 'Decisively.Web.Controllers.TokenAuthController.RefreshToken (Decisively.Web.Core)' INFO 2021-01-06 14:10:07,513 [109 ] c.Infrastructure.ControllerActionInvoker - Route matched with {action = "RefreshToken", controller = "TokenAuth", area = ""}. Executing controller action with signature System.Threading.Tasks.Task`1[Decisively.Authorization.Accounts.Dto.RefreshTokenResult] RefreshToken(System.String) on controller Decisively.Web.Controllers.TokenAuthController (Decisively.Web.Core). ERROR 2021-01-06 14:10:07,799 [101 ] Mvc.ExceptionHandling.AbpExceptionFilter - Refresh token is not valid!

We chaecked if the Refresh token stored and retried are the same and they are....

Received Refresh Token

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1laWRlbnRpZmllciI6IjEiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiYWRtaW4iLCJBc3BOZXQuSWRlbnRpdHkuU2VjdXJpdHlTdGFtcCI6IlJMNEJYN0ZYRURMSUJLM1NPRFlZTUtDSU5BUUxKRDNEIiwiaHR0cDovL3NjaGVtYXMubWljcm9zb2Z0LmNvbS93cy8yMDA4LzA2L2lkZW50aXR5L2NsYWltcy9yb2xlIjoiQWRtaW4iLCJodHRwOi8vd3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ZW5fdmFsaWRpdHlfa2V5IjoiZGU2NjIwNmYtZTgwZi00ZjlkLWFlZWEtM2I1NGNhZGQ0NDY1IiwidXNlcl9pZGVudGlmaWVyIjoiMUA4IiwidG9rZW5fdHlwZSI6IjEiLCJuYmYiOjE2MDk5NDc1MzEsImV4cCI6MTY0MTQ4MzUzMSwiaXNzIjoiRGVjaXNpdmVseSIsImF1ZCI6IkRlY2lzaXZlbHkifQ._ThtS4KNnGdzXAydPmPbFcLMMH3DTXtacqJNdAGsKDw"

Thank you @alper

We are tried with commenting the the codes which use WebRequestExecuter directly in AppDelegate.cs class.** But it did not work. ** On Further investigation we understand that When we work with FCM, the code in AppDelegate.cs class "ApplicationBootstrapper.InitializeIfNeeds<DecisivelyXamarinIosModule>();" calling the method "userConfigurationService.GetAsync(AccessTokenManager.IsUserLoggedIn)". And retuns null as result in Decisively.ViewModels.Base.UserConfigurationManager.cs class. And it throwing null object reference exception and calling App.ExitApplication(); method.

Without FCM integration code it works perfectly and got result.

Showing 1 to 10 of 43 entries