Skip to content

Instantly share code, notes, and snippets.

View NikkyAI's full-sized avatar
🏳️‍⚧️
burnt (out) by corporate

Nikky NikkyAI

🏳️‍⚧️
burnt (out) by corporate
View GitHub Profile
@NikkyAI
NikkyAI / Main.kt
Last active October 15, 2020 14:47
import io.ktor.application.*
import io.ktor.server.engine.*
import io.ktor.server.netty.*
import kotlinx.coroutines.*
import java.util.concurrent.TimeUnit
// start embedded server and close gracefully
fun main(args: Array<String>) {
System.setProperty(DEBUG_PROPERTY_NAME, DEBUG_PROPERTY_VALUE_ON)
Download https://services.gradle.org/distributions/gradle-6.7-bin.zip finished, took 2 m 23 s 762 ms (102,8 MB)
Starting Gradle Daemon...
Gradle Daemon started in 1 s 328 ms
> Task :prepareKotlinBuildScriptModel UP-TO-DATE
Failed to detect whether we are running on Google Compute Engine.
java.net.SocketException: Network is unreachable: connect
at java.net.DualStackPlainSocketImpl.waitForConnect(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:85)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)