Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

httpclient broken in 1.4

I am trying to use HttpClient with a https url

url  = "https://username:pass@someurl.com"

I get this error

Error Domain=ASIHTTPRequestErrorDomain Code=1 UserInfo=0x65b1a40 "A connection failure occurred"

In 1.3.2 it was working perfectly

Ideas? thank you

— asked July 28th 2010 by Dan Tamas
  • 1.4
  • error
  • httpclient
  • https
  • ipad
  • mobile
1 Comment
  • I believe this is also broken in the ImageView also as I tried to use a username/password in the URL and it didn't load.

    — commented July 28th 2010 by Jeevan K

6 Answers

  • Hi Tamas.

    Yes - you are correct. I'm getting the same error when.

    I downloaded the latest build (Jul 28 2010 @ 11:27 : re65c52ec) from http://builds.appcelerator.com.s3.amazonaws.com/index.html

    It looks like a parsing error.

    [ERROR] Error Domain=com.google.GDataXML Code=-1 
    "The operation couldn’t be completed. (com.google.GDataXML error -1.)". 
    in -[TiDOMDocumentProxy parseString:] (TiDOMDocumentProxy.m:48)
    
    — answered July 28th 2010 by Simon Kok
    permalink
    0 Comments
  • This is also broken for us. https fails http works.

    — answered July 28th 2010 by Vinh Bui
    permalink
    0 Comments
  • Yap. That killed my Twitter Xauth with https auth as well. Need fix badly.

    This is on iPad app, compiled with 1.4, parameters not posted on https

    "[INFO] error1=Error Domain=ASIHTTPRequestErrorDomain Code=3 UserInfo=0x7018760 "Authentication needed"

    Reversed to an early built 1.3.3, posted OK.

    — answered July 28th 2010 by Daniel Lim
    permalink
    0 Comments
  • Hi there.

    A ticket has been submitted. It's ticket # 1412.

    https://appcelerator.lighthouseapp.com/projects/32238/tickets/1412-iphone-usernamepass-on-url-https-only-will-break

    — answered July 29th 2010 by Simon Kok
    permalink
    0 Comments
  • Hi there.

    I just tested the latest build with my app which calls a REST API using a user name/password with SSL - and it's working again!

    July 29 2010 - 13:35 r60364b73
    (http://github.com/appcelerator/titanium_mobile/commit/60364b73b1c5d17d7e8f42ecaf80b58efb5e5d4f)

    http://builds.appcelerator.com.s3.amazonaws.com/index.html

    — answered July 29th 2010 by Simon Kok
    permalink
    0 Comments
  • Hi there,

    Do we know if this has been fixed? I've had to resort back to 1.3.2 to get my xAuth for Twitter working. But really need to use 1.4.0 as I would like to use iAds etc.

    Regards
    Paul

    — answered August 10th 2010 by Paul Pounder
    permalink
    2 Comments
    • I've just tried this with the latest 1.4.1 build and still getting an error on my xAuth for Twitter (works in 1.3.2)

      — commented August 10th 2010 by Paul Pounder
    • Apologies, I've just restarted Titanium and it seems to be fixed with the 1.4.1 latest build

      — commented August 10th 2010 by Paul Pounder
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.