Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3030] iOS: Facebook - Cancelling dialog results in NSURLErrorDomain error

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-02-23T10:03:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelstc-more-info
ReporterJason Crider
AssigneeMauro Parra-Miranda
Created2012-01-12T07:22:20.000+0000
Updated2016-03-08T07:48:03.000+0000

Description

Problem

Opening Facebook.dialog and clicking cancel before dialog loads throws a NSURLErrorDomain error -999 error Following this, the application freezes and closes both in the simulator and device.

Test case

When the dialog pops up quickly, click the 'Cancel' button. The error should be thrown and the app should close. Due to time constraints, I am currently unable to test this in any situation outside of the application I'm working on, so the 'force closing' may be specific to my application alone.
Ti.Facebook.dialog('feed',data, function(e){
  trace('result:'+e.result);
  trace('success:'+e.success);
  trace('cancelled:'+e.cancelled);
  trace('error:'+e.error);
});

Comments

  1. Paul Dowsett 2012-01-12

    Thanks for raising this ticket. In order for me to escalate it to the core team, all the fields must be complete. Please check it against the [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and add any missing information. For the description field, you can use [this template](https://wiki.appcelerator.org/display/guides/JIRA+Ticket+Template) as a starting point (simply copy and paste it). Furthermore, we must be able to reproduce the issue in order to accept it, and so a test case must be included and run without modification, as per the [Creating a Test Case](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase) section. Thanks in advance for your cooperation. Cheers
  2. Mauro Parra-Miranda 2012-02-23

    Tested on 1.8.1, it's working fine.

JSON Source