Self Client invalid_code Error

Self Client invalid_code Error

Hello,

We are trying to use the Zoho CRM SDK version 7.0 for Node.js, with an API Self Client. We have our Self Client ID and secret saved, and have generated 2 different refresh tokens.

Every time the SDK tries to get an access token using either of the refresh tokens, we get an invalid_code exception: "SDKException [Error]: invalid_code". We are also able to reproduce this by manually trying to generate an access token with cURL. (Client ID, Secret and Refresh Token have been removed)

  1. curl --location 'https://accounts.zoho.com/oauth/v2/token' \
    --form 'client_id="1000.CLIENT_ID"' \
    --form 'client_secret="CLIENT_SECRET"' \
    --form 'grant_type="refresh_token"' \
    --form 'code="1000.REFRESH_TOKEN"'
  2. {"error":"invalid_code"}

How do we go about addressing this issue so that we can use the SDK?

Thank you for your help!

    Zoho Desk Resources

    • Desk Community Learning Series


    • Digest


    • Functions


    • Meetups


    • Kbase


    • Resources


    • Glossary


    • Desk Marketplace


    • MVP Corner


    • Word of the Day


      Zoho CRM Plus Resources

        Zoho Books Resources


          Zoho Subscriptions Resources

            Zoho Projects Resources


              Zoho Sprints Resources


                Zoho Orchestly Resources


                  Zoho Creator Resources


                    Zoho WorkDrive Resources



                      Zoho Campaigns Resources

                        Zoho CRM Resources

                        • CRM Community Learning Series

                          CRM Community Learning Series


                        • Tips

                          Tips

                        • Functions

                          Functions

                        • Meetups

                          Meetups

                        • Kbase

                          Kbase

                        • Resources

                          Resources

                        • Digest

                          Digest

                        • CRM Marketplace

                          CRM Marketplace

                        • MVP Corner

                          MVP Corner




                          Zoho Writer Writer

                          Get Started. Write Away!

                          Writer is a powerful online word processor, designed for collaborative work.

                            Zoho CRM コンテンツ




                              ご検討中の方