SSL Exception When Querying REST API

SSL Exception When Querying REST API

We use functions to query regional data from GIS REST APIs. We're having an issue with one REST API that appears to be a problem within ZOHO, as I'm not having an issue querying the API in Postman or via the built in query tool.

  1. // test coords
  2. lon = "-84.29118695502028";
  3. lat = "37.926056998991726";
  4. coord = lon + "," + lat;
  5. // base url
  6. REAP_url = "https://rdgdwe.sc.egov.usda.gov/arcgis/rest/services/Eligibility/Eligibility/MapServer/4/query";
  7. // Set General params
  8. params = Map();
  9. params.put("geometry",coord);
  10. params.put("geometryType","esriGeometryPoint");
  11. params.put("returnGeometry","false");
  12. params.put("inSR","4326");
  13. params.put("f","pjson");
  14. //Set RHS (Rural Development) params
  15. REAP_params = params;
  16. //
  17. //Run query and save to separate responses
  18. REAP_resp = invokeurl
  19. [
  20. url :REAP_url
  21. type :GET
  22. parameters:REAP_params
  23. ];
  24. info REAP_resp;
returns: Failed to execute function
  • Execution exception : 'Exception - 'SSLException'' Line Number:63
Meanwhile, the same query on Postman returns the following JSON:
  1. {
  2.  "displayFieldName": "STATENAME",
  3.  "fieldAliases": {
  4.   "STATENAME": "STATENAME"
  5.  },
  6.  "fields": [
  7.   {
  8.    "name": "STATENAME",
  9.    "type": "esriFieldTypeString",
  10.    "alias": "STATENAME",
  11.    "length": 100
  12.   }
  13.  ],
  14.  "features": [
  15.   
  16.  ]
  17. }
Not sure why I'm receiving an SSL Exception. Any assistance in working around the exception would be appreciated.

    Access your files securely from anywhere

        Zoho Developer Community




                                  Zoho Desk Resources

                                  • Desk Community Learning Series


                                  • Digest


                                  • Functions


                                  • Meetups


                                  • Kbase


                                  • Resources


                                  • Glossary


                                  • Desk Marketplace


                                  • MVP Corner


                                  • Word of the Day



                                      Zoho Marketing Automation


                                              Manage your brands on social media



                                                    Zoho TeamInbox Resources

                                                      Zoho DataPrep Resources



                                                        Zoho CRM Plus Resources

                                                          Zoho Books Resources


                                                            Zoho Subscriptions Resources

                                                              Zoho Projects Resources


                                                                Zoho Sprints Resources


                                                                  Qntrl Resources


                                                                    Zoho Creator Resources



                                                                        Zoho Campaigns Resources


                                                                          Zoho CRM Resources

                                                                          • CRM Community Learning Series

                                                                            CRM Community Learning Series


                                                                          • Kaizen

                                                                            Kaizen

                                                                          • Functions

                                                                            Functions

                                                                          • Meetups

                                                                            Meetups

                                                                          • Kbase

                                                                            Kbase

                                                                          • Resources

                                                                            Resources

                                                                          • Digest

                                                                            Digest

                                                                          • CRM Marketplace

                                                                            CRM Marketplace

                                                                          • MVP Corner

                                                                            MVP Corner





                                                                              Design. Discuss. Deliver.

                                                                              Create visually engaging stories with Zoho Show.

                                                                              Get Started Now