Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad Url on Device, but works ok on Simulator #2

Open
seivan opened this issue May 6, 2010 · 0 comments
Open

Bad Url on Device, but works ok on Simulator #2

seivan opened this issue May 6, 2010 · 0 comments

Comments

@seivan
Copy link

seivan commented May 6, 2010

I am using xCode 3.2 beta 3.
I can't compile it for Device/simulator 4 or Simulator 3.2 but I can compile and run it on Device 3.2

Using something very simple that works on the simulator
[self setBaseURL:[NSURL URLWithString:@"http://tddd-2010-1.lol.com:8080/cars-rest/resources"]]
....
[self postPath:@"/account/login/" withOptions:opts object:aDelegate];

I get Bad Url :-/

  • (void)restConnection:(NSURLConnection *)connection didFailWithError:(NSError *)error object:(id)object {
    // Handle connection errors. Failures to connect to the server, etc.

    //UNCOMMENT FOR DEMO
    //MPAlertWithErrorAndDelegate(error, nil);
    NSLog(@"didFailWithError, %@", error);
    [UIApplication sharedApplication].networkActivityIndicatorVisible = NO;
    [object performSelector:@selector(showMessage:format:) withObject:@"Cannot login right now" withObject:@"error"];
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant