NSErrorFailingURLStringKey

1,826 views
Skip to first unread message

equinox

unread,
Jul 21, 2011, 9:14:12 PM7/21/11
to RestKit
I am getting the following error and don't know how to fix it:

Encountered an error: Error Domain=NSURLErrorDomain Code=-1012 "The
operation couldn’t be completed. (NSURLErrorDomain error -1012.)"
UserInfo=0x502c370 {NSErrorFailingURLKey=https://convore.com/api/
account/verify.json, NSErrorFailingURLStringKey=https://convore.com/
api/account/verify.json}

Why is this?

Blake Watters

unread,
Jul 21, 2011, 11:29:54 PM7/21/11
to res...@googlegroups.com
Check NSURL headers for the meaning of that error code

Powered by iBlake!

Blake Watters

unread,
Jul 21, 2011, 11:31:50 PM7/21/11
to res...@googlegroups.com
Looks like an HTTP AUTH error

Powered by iBlake!

On Jul 21, 2011, at 9:14 PM, equinox <adity...@gmail.com> wrote:

> NSURLErrorDomain

Message has been deleted

equinox

unread,
Jul 22, 2011, 12:03:28 AM7/22/11
to RestKit
I realized what the issue was, I was trying to set the username and
password of the RKObjectManager later on, which for some weird reason
it doesn't set it.
This is related to this thread,
http://groups.google.com/group/restkit/browse_thread/thread/a2959f4c3756bb85/bbb5fe16a069a174?lnk=gst&q=username#bbb5fe16a069a174
Blake, can you comment on this?

On Jul 21, 8:31 pm, Blake Watters <blakewatt...@gmail.com> wrote:
> Looks like an HTTP AUTH error
>
> Powered by iBlake!
>
> On Jul 21, 2011, at 9:14 PM, equinox <aditya15...@gmail.com> wrote:
>
>
>
>
>
>
>
> > NSURLErrorDomain

equinox

unread,
Jul 22, 2011, 12:10:00 AM7/22/11
to RestKit
I had to set it as:

manager.client.username = username;
manager.client.password = password;

but doing:

[RKObjectManager sharedManager].client.username = username;
[RKObjectManager sharedManager].client.password = password;

for some weird reason doesn't work

On Jul 21, 9:03 pm, equinox <aditya15...@gmail.com> wrote:
> I realized what the issue was, I was trying to set the username and
> password of the RKObjectManager later on, which for some weird reason
> it doesn't set it.
> This is related to this thread,http://groups.google.com/group/restkit/browse_thread/thread/a2959f4c3...

Blake Watters

unread,
Jul 22, 2011, 8:19:20 AM7/22/11
to res...@googlegroups.com
Will try to look some time soon...
Reply all
Reply to author
Forward
0 new messages