Get urlconnection runtime error in debugger only ....?

Happy seasons to all :slightly_smiling_face:

Here I have a very short code that runs as a build but not in the debugger:

Try
  Var response As String = http.SendSync("GET", url, 30) // Increased timeout to 30 seconds
  If http.HTTPStatusCode = 200 Then
    MessageBox("Response: " + response)
  Else
    MessageBox("Error: HTTP Status " + http.HTTPStatusCode.ToString + " - " + response)
  End If
Catch e As IOException
  MessageBox("Connection Error: " + e.Message)
End Try

The message is: “Network connection interrupted” - but in debug only. B.t.w.: What happened to the simple urlconnection.send command? Is in the docs but doesn’t compile any more?

Thanks fo any answer.

No clue as to your exception. Probably something machine-specific or myself and others would be experiencing and reporting it.

As for URLConnection.Send, as I commented on your Issue, it’s still there and works just fine. I attached a project there.

1 Like

Um… URLConnection throws NetworkExceptions, not IOExceptions.

1 Like