exaV / screeps-kotlin-starter

A starting point for a Screeps AI written in Kotlin
MIT License
46 stars 63 forks source link

cant deploy on local server 127.0.0.1:21025 #9

Closed Krobys closed 5 months ago

Krobys commented 3 years ago

cant deploy on local server

can you help me, what i must to set as screepsUser and screepsPassword, if i try to deploy on the local server, what settings must be settled? if default user and password from official, the error showing.

Tender2233 commented 3 years ago

@Krobys meet similar problem with you. I can't even deploy on official server,cause by very similar problem. Could I know if you successfully deploy your code to official server?

exaV commented 2 years ago

I have recently updated the 'deploy' task. Does it work now? If you get an SSL error you may need to set screepsSkipSslVerify=true in gradle.properties. However that is not necessary if you upload to the offical servers.

Krobys commented 2 years ago

if i use screepsSkipSslVerify=true 127.0.0.1:21027 there is no error, but deploying is infinite, on 92% 127.0.0.1:21025 the error is "javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake" (screepsmod-auth configured) 127.0.0.1:21026, the error is "javax.net.ssl.SSLException: Unsupported or unrecognized SSL message"

Krobys commented 2 years ago

After a lot of research, trying to send requests manually, it looks like the problem is that in gradle the connection is configured by https, but for https to work, a certificate is needed. At the same time, the connection with http works without a certificate, but gradle is not configured for it.

On the official server all is works perfectly

exaV commented 5 months ago

this should work now with the new (java 11) http client