[TIMOB-17548] iOS: APSHTTPRequest send fails with assertion on self.method
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-08-27T21:09:36.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 3.4.0 |
Components | iOS |
Labels | core, module_network, qe-manualtest |
Reporter | Richard Lustemberg |
Assignee | Vishal Duggal |
Created | 2014-07-23T13:46:34.000+0000 |
Updated | 2014-09-02T17:23:52.000+0000 |
Description
HTTP client calls fail and crash the app. The following error is reported:
Assertion failed: (self.method != nil), function -[APSHTTPRequest send], file /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m, line 66.
It looks like something is not properly linked in libAPSHTTPClient.a , as the error is pointing to a path in vduggal's computer.
Hi, Can you provide us a simple test case for this problem. Thanks. Regards, Shuo
Related to this community discussion: https://developer.appcelerator.com/question/176379/error-assertion-failed-titanium-330ga looks like is happening to at least 3 people, but there is no way to reproduce it consistently just yet.
Indeed. The day I posted I had the issue, and since then I couldn't reproduce. It was happening within a series of nested callbacks between httpclient and the facebook module. I'll give it anothe try isolating some test code. Anyway, this line from the log should give an idea of what's going on: /Users/vduggal/ForkedRepos/APSHTTPClient/APSHTTPClient/APSHTTPRequest.m the local path in vduggal's Mac
I have updated the Q&A post https://developer.appcelerator.com/question/176379/error-assertion-failed-titanium-330ga with my experience/solution - not sure if it will help in your investigation. Cheers
I also got this error when I tested a small yql query. My environment: OS X 10.9.4 Titanium Studio: build: 3.3.0.201407100905 Titanium SDK: 3.3.0.GA iOS Simulator: iPhone Retina (4-inch 64-bit), Version 7.1(11D167) Xcode: Version 5.1.1 (5B1008) The script is really very simple.
Console log:
Hope that helps, Matthias
Titanium SDK: 3.2.3.GA works as expected:
This was fixed in PR: https://github.com/appcelerator/titanium_mobile/pull/5958
Environment tested Mac osx 10.9.4 Maverics Appcelerator Studio, build: 3.4.0.201408201526 Titanium SDK, build: 3.4.0.v20140827165712 titanium@3.4.0-dev (git://github.com/appcelerator/titanium.git#9079326639c7f610dafee33dd16742de7d92d795) Xcode6-beta4 Device: iPhone 5c iOS 7.1
Appcelerator Studio, build: 3.4.0.201408291834 Titanium SDK, build: 3.4.0.v20140829184521 Xcode6-beta4 Device: iPhone 5S
Actual result