title: Thread 1: EXC_BREAKPOINT (code=1, subcode=0x10136bb50) - swift
body: <p>I got this error when I want to send value with <code>GET</code> method:</p>
  
  <blockquote>
    <p>Thread 1: EXC_BREAKPOINT (code=1, subcode=0x10136bb50)</p>
  </blockquote>
  
  <p>To get values:</p>
  
  <pre><code>var flname      = self.txt_field_flname.text
  var job_title   = self.txt_field_job_title.text
  var mobile      = self.txt_field_mobile.text
  var des         = self.txt_field_des.text
  var lat         = self.lat
  var lon         = self.lon
  
  self.sendNewJob(fname: flname!, title: job_title!, mobile:  mobile!, des: des!, lat: String(lat), lon: String(lon) )
  </code></pre>
  
  <hr>
  
  <pre><code>func sendNewJob(fname:String,title:String,mobile:String,des:String,
                  lat:String,lon:String)
  {
      print("fname \(fname)  title \(title)  mobile \(mobile) des \(des) lat \(lat) lon \(lon)") //output is well
  
      RestApiManager.sharedInstance.sendNewJob(fname: fname,title: title,mobile:mobile,
                                               des:des,lat:lat,lon:lon) { (json: JSON) in
  
      }
  }
  </code></pre>
  
  <hr>
  
  <pre><code>func sendNewJob(fname:String,title:String,mobile:String,des:String,
                  lat:String,lon:String,onCompletion: @escaping (JSON) -&gt; Void) {
      let route = baseURL+"up=1&amp;Name=\(fname)&amp;BusinessName=\(title)&amp;MobileNumber=\(mobile)&amp;latitude=\(lat)&amp;longitude=\(lon)&amp;Description=\(des)"
      makeHTTPGetRequest(path: route, onCompletion: { json, err in
          onCompletion(json as JSON)
      })
  }
  
  
  // MARK: Perform a GET Request
  private func makeHTTPGetRequest(path: String, onCompletion: @escaping ServiceResponse) {
      let request = NSMutableURLRequest(url: NSURL(string: path)! as URL) // line of my error
  
      let session = URLSession.shared
  
      let task = session.dataTask(with: request as URLRequest, completionHandler: {data, response, error -&gt; Void in
          if let jsonData = data {
              let json:JSON = JSON(data: jsonData)
              onCompletion(json, error as NSError?)
          } else {
              onCompletion(nil, error as NSError?)
          }
      })
      task.resume()
  }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/6fiOK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6fiOK.png" alt="enter image description here"></a></p>