Skip to content

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

Description

@seivan

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"];
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions