title: "Insecure HTTP request is unsupported" Error in Scala
body: <p>I am getting the following error when attempting to run <code>sbt run</code> to run my Scala code:</p>
  <p><code>insecure HTTP request is unsupported 'http://repo.typesafe.com/typesafe/releases'; switch to HTTPS or opt-in as (&quot;typesafe-releases&quot; at &quot;http://repo.typesafe.com/typesafe/releases&quot;).withAllowInsecureProtocol(true), or by using allowInsecureProtocol in repositories file</code></p>
  <p>This is strange because it was working perfectly fine last week and I have changed nothing in the code. I have tried adding <code>(&quot;typesafe-releases&quot; at &quot;http://repo.typesafe.com/typesafe/releases&quot;).withAllowInsecureProtocol(true)</code> in my <code>build.sbt</code> file and resolver file, installing Java11, deleting my project folder, and completely reclone my code from the repository but nothing is working. I am using Visual Studios but have also tried on IntelliJ and get the same error.</p>
  <p>Any advice would be greatly appreciated, as I have changed nothing and now suddenly my code doesn't compile anymore. Further details:</p>
  <p>sbt.version = 1.4.0</p>
  <p>Scala code runner version 2.12.10</p>
  <p>My current built.sbt (please note that I did not have the resolve part added before, when my code was working fine. It was added as an attempt to resolve the issue but did not work):</p>
  <pre><code>scalaVersion := &quot;2.12.10&quot;
  
  name := &quot;name&quot;
  organization := &quot;org&quot;
  version := &quot;1.0&quot;
  
  libraryDependencies ++= Seq(
  &quot;org.scala-lang.modules&quot; %% &quot;scala-parser-combinators&quot; % &quot;1.1.2&quot;,
  &quot;org.apache.spark&quot; %% &quot;spark-core&quot; % &quot;3.0.1&quot;,
  &quot;org.apache.spark&quot; %% &quot;spark-sql&quot; % &quot;3.0.1&quot;,
  &quot;org.reactivemongo&quot; %% &quot;reactivemongo-bson-api&quot; % &quot;0.20.11&quot;,
  &quot;org.mongodb.spark&quot; %% &quot;mongo-spark-connector&quot; % &quot;3.0.0&quot;,
  &quot;com.ibm.db2.jcc&quot; % &quot;db2jcc&quot; % &quot;db2jcc4&quot;
  )
  
  resolvers += Resolver.typesafeRepo(&quot;releases&quot;)
  </code></pre>
  <p><strong>EDIT:</strong>
  I've discovered that this error occurs regardless of project, and even occurs when I simply run sbt by itself.</p>