question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad Request This combination of host and port requires TLS.

See original GitHub issue

After deploying the docker container, going to http://ipaddressofdockerserver:8443/ gives an error Bad Request This combination of host and port requires TLS. Logs are

gaps           | 2019-10-21 19:46:57.138  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : Starting GapsApplication v0.0.4 on zoe02 with PID 1 (/usr/src/app/Gaps-0.0.4.jar started by root in /usr/src/app)
gaps           | 2019-10-21 19:46:57.142  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : No active profile set, falling back to default profiles: default
gaps           | 2019-10-21 19:46:57.411  WARN 1 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder    : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath
gaps           | 2019-10-21 19:46:59.360  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8443 (https)
gaps           | 2019-10-21 19:46:59.431  INFO 1 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
gaps           | 2019-10-21 19:46:59.432  INFO 1 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.24]
gaps           | 2019-10-21 19:46:59.561  INFO 1 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
gaps           | 2019-10-21 19:46:59.561  INFO 1 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 2306 ms
gaps           | 2019-10-21 19:47:00.361  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientInboundChannelExecutor'
gaps           | 2019-10-21 19:47:00.368  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'clientOutboundChannelExecutor'
gaps           | 2019-10-21 19:47:00.407  INFO 1 --- [           main] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService 'messageBrokerTaskScheduler'
gaps           | 2019-10-21 19:47:00.469  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'brokerChannelExecutor'
gaps           | 2019-10-21 19:47:00.674  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService
gaps           | 2019-10-21 19:47:00.674  INFO 1 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'taskExecutor'
gaps           | 2019-10-21 19:47:00.952  INFO 1 --- [           main] o.s.b.a.w.s.WelcomePageHandlerMapping    : Adding welcome page: class path resource [static/index.html]
gaps           | 2019-10-21 19:47:01.185  WARN 1 --- [           main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates or check your Thymeleaf configuration)
gaps           | 2019-10-21 19:47:01.436  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Starting...
gaps           | 2019-10-21 19:47:01.436  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : BrokerAvailabilityEvent[available=true, SimpleBrokerMessageHandler [DefaultSubscriptionRegistry[cache[0 destination(s)], registry[0 sessions]]]]
gaps           | 2019-10-21 19:47:01.437  INFO 1 --- [           main] o.s.m.s.b.SimpleBrokerMessageHandler     : Started.
gaps           | 2019-10-21 19:47:02.306  INFO 1 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8443 (https) with context path ''
gaps           | 2019-10-21 19:47:02.320  INFO 1 --- [           main] com.jasonhhouse.Gaps.GapsApplication     : Started GapsApplication in 6.389 seconds (JVM running for 7.087)
gaps           | 2019-10-21 19:47:15.485 ERROR 1 --- [nio-8443-exec-1] o.a.coyote.http11.Http11NioProtocol      : Error reading request, ignored
gaps           | 
gaps           | java.lang.NullPointerException: null
gaps           |        at org.apache.tomcat.util.net.NioEndpoint$NioSocketWrapper.getSslSupport(NioEndpoint.java:1392) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:853) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1593) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[na:na]
gaps           |        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[na:na]
gaps           |        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) ~[tomcat-embed-core-9.0.24.jar!/:9.0.24]
gaps           |        at java.base/java.lang.Thread.run(Thread.java:834) ~[na:na]
gaps           | 
gaps           | 2019-10-21 19:47:15.487 ERROR 1 --- [nio-8443-exec-1] org.apache.tomcat.util.net.NioEndpoint   : Error running socket processor

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:24 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
Knoxiecommented, Oct 23, 2019

Well we don’t currently plan on making the change away from the HTTPS. Sorry.

On Tue, Oct 22, 2019 at 10:19 PM hjone72 notifications@github.com wrote:

it’s not to do with the redirect. I want to access it via HTTP not HTTPS

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/JasonHHouse/Gaps/issues/59?email_source=notifications&email_token=AAICE7GFTMBSXFOP3BV6IRLQP6YEDA5CNFSM4JDED7L2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEB7ZXAQ#issuecomment-545233794, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAICE7DDNJTWGUFVFN4WSEDQP6YEDANCNFSM4JDED7LQ .

  • Greg
1reaction
darkmountcommented, Oct 22, 2019

I’m also having this issue. I don’t have plex installed on the machine I’m running gaps on nor do I have anything occupying it’s port. I believe docker will error if you try to bind a port that’s already in use.

Either way I got round it by adding the https protocol in front of the url (https://127.0.0.1:8484) then accepting the warning about the site not being secure. Something in the server setup isn’t happy.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bad Request - This combination of host and port requires TLS ...
I'm trying to make a https call to a service, I have a Privake key to secure connection. I hit: http://localhost:8081/points/12345/search. I ...
Read more >
Bad request - This combination of host and port requires TLS.
I run my Unify Controller on an Azure windows vm (windows server 2012R2). The controller runs as a service. When I log into...
Read more >
This combination of host and port requires TLS
Problem Description: If you are trying to log into TIBCO JasperReports ® Server via SSL and you believe you have configured the connector...
Read more >
Bad Request This combination of host and port requires TLS.
Hi!I tried to use a self signed cert and after restarting SDP I received this error message:"Bad RequestThis combination of host and port...
Read more >
Got "Bad Request This combination of host and port requires ...
When access it thru web browser with HTTPS, we got error: Bad Request This combination of host and port requires TLS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found