Solved Authentication Issues With Update 5

Status
Not open for further replies.

NSBG

Silver Partner
Advanced Certified
Joined
Apr 25, 2023
Messages
7
Reaction score
2
I created a CRM template some time ago using the 3CX CRM Template Generator to do call pops in Agencyzoom, and have found that after updating our customers' 3CX servers to v20 Update 5 it no longer works. I verified it still works on a server running Update 4 with the exact same template.

This is the error I get on Update 5:
Started scenario with empty id
Started Auth
Request text: https://app.agencyzoom.com
Request form value username set to <email>
Request form value password set to <password>
Response text: ********
Response finished
Finished Auth
System.InvalidOperationException: Sequence contains no matching element
at System.Linq.ThrowHelper.ThrowNoMatchException()
at System.Linq.Enumerable.First[TSource](IEnumerable`1 source, Func`2 predicate)
at Integration.Crm.Engine.ScenarioAuthHttpClientProvider.StoreAuthData(ProcessingContext context, String refreshToken)
at Integration.Crm.Engine.ScenarioAuthHttpClientProvider.PerformScenarioIfNeeded(CancellationToken token)
at Integration.Crm.Engine.ScenarioAuthHttpClientProvider.Create(CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.ProcessScenario(ProtocolScenario scenario, IValueManager customManager, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.ScenarioProcessorBase.Execute(ProtocolScenario scenario, SqlQueryParameter[] sqlQueryParameter, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.GetContactInfoFromCrm(List`1 result, IEnumerable`1 scenariosToProcess, IValueManager customManager, SqlQueryParameter[] sqlQueryParameters, Func`2 filterResultsFunctor, Boolean exactMatch, CancellationToken token)
at Integration.Crm.Engine.CrmProcessor.GetContactInfo(String contactNumber, InteractionTypes interactionType, CancellationToken token)

As far as I can tell, the system is now expecting a refresh token and a cancellation token, which do not exist because Agencyzoom login API returns a jwt and nothing else. I have tried adding a dummy value for refresh token and expiration to the template, but it doesn't have any effect.

Has anybody encountered similar issues and found a fix?
 

Attachments

Fixed in U6.

It's a bug. Introduced after another fix in U5. Add a blank RefreshToken of type OAuth parameter to workaround it.
 
This worked. Thank you!
 
Status
Not open for further replies.

Forum statistics

Threads
112,322
Messages
591,889
Members
165,470
Latest member
Robert Lee