Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-27767

iOS: Parity: httpClient should trigger error callback when url is invalid

    Details

    • Sprint:
      2020 Sprint 13

      Description

      When httpClient is initiated with an invalid URL it currently fails silently. Instead, the behavior should be the same as on Android (call the error callback)

      Currently, a workaround is to check the URL property is set to null after calling send

      Expected Result
      Instead, on iOS, error callback should be triggered the same way it is triggered on Android when an invalid URL is provided.

      Test Code

      const url = "https://www.google .com/";
      // above url have space after keyword google
      const client = Ti.Network.createHTTPClient({
          onload: function(e) {
              console.log("success");
          },
       
          onerror: function(e) {
              console.error(e.error);
          },
      });
      client.open("GET", url);
      client.send();
      

        Attachments

          Activity

            People

            • Assignee:
              vijaysingh Vijay Singh
              Reporter:
              topener Rene Pot
              Reviewer:
              Christopher Williams
              Tester:
              Satyam Sekhri
            • Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                  Git Integration