• V20: 3CX Re-engineered. Get V20 for increased security, better call management, a new admin console and Windows softphone. Learn More.

Zoho integration doesn't work

Status
Not open for further replies.

Julien31

Joined
Oct 3, 2017
Messages
4
Reaction score
0
Hi

I did follow guide and all steps but whne i click auhtorise i get :

ERROR_invalid_redirect_uri

Julien,
 
Hello,
I have the same problem. When I click authorize I get ERROR_invalid_redirect_uri. But, my redirect uri at the Client ID in Zoho is ok (i guess).

zoho.png

When I make a test, from the test button, I get:
Code:
Started scenario with empty id
Started Auth
Request text: https://accounts.zoho.com/oauth/v2/token
Request form value refresh_token set to
Request form value grant_type set to refresh_token
Request form value client_id set to **************************************************
Request form value client_secret set to **************************************************
Response text: {"error":"invalid_code"}
Response finished
Finished Auth
System.Exception: Unknown expression: ApiDomain. Part: ApiDomain.
   at TcxLexicalParser.ValueManager.GetByPath(String[] path)
   at TcxLexicalParser.LexEvaluator.ProcessInt(ConcatElement concatElement, IValueManager valueManager, Boolean isFunctionArgument)
   at CrmIntegration.EscapedExpressionEvaluator.ParseExpression(String expression, Boolean asExpression, IValueManager customManager)
   at CrmIntegration.ScenarioProcessorBase.<ProcessRequest>d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CrmIntegration.ScenarioProcessorBase.<ProcessScenario>d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CrmIntegration.ScenarioProcessorBase.<Execute>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at CrmIntegration.CrmProcessor.<GetContactInfo>d__5.MoveNext()

What should I do to fix it?

Thank you in advance
 
You need to press the Authorize button before testing. It seems you didn't do it as the refresh token is empty.
 
Hello,
I did that as a (desperate) test. Anyway, why I can not Authorize?

Thank you in advance.
 
Are you accessing the 3CX Console using the URL you specified when created the Client ID? Probably not, maybe you're entering the server IP address instead of the FQDN.
 
Without the /api/oauth2crm yes. I can access the console.
 
Try accessing the console using that same URL. It is important to use the same protocol (http / https) and the same FQDN and port number. Otherwise you will get that invalid redirect url error.
 
I use the same, as it is at the ZOHO client id details picture at post #3.

https://*****.3cx.gr:5001

From my mobile network test.
Screenshot_20180720-160837_Samsung Internet.jpg
 
Try changing to the IP address in both sides. Try changing to http instead of https.
 
OK, I will test it.
 
When I try to access the management console with http://i****a.3cx.gr:5000 from the internet I get a "403 Forbidden" error. Besides that, every test ends with ERROR_invalid_redirect_uri error again.

By "Try changing to the IP address in both sides" what do you mean? The ZOHO API Credentials client Domain and Authorized redirect URIs? Because I change them also but I had the same result.
 
Silly but important question: are you running 3CX v15.5 Update 5? Because the authorization will only work when Update 5 or later is applied.
 
I believe so.
Screenshot_072418_093913_AM.jpg

I will keep an eye when you become available.
 
Very weird behaviour, this might need a TeamViewer troubleshooting session, please open a support ticket so we can do it.
 
Status
Not open for further replies.
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.