Coder Social home page Coder Social logo

Comments (10)

okohub avatar okohub commented on August 11, 2024 9

Hello guys,

There is a strange bug about this: https://bugs.openjdk.java.net/browse/JDK-8213202

Actually we did not find this through facebook login problem, we were also struggling with some other api (which is facebook merchant). Looks like its about tlsv1.3

A solution? Of course;

For now, you can add this prop to jvm. After we made this, connection problems were gone :)

-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 

Cheers! :)

from spring-social-facebook.

IRus avatar IRus commented on August 11, 2024 1

Got same issue (unrelated to spring-social-facebook) but with facebook api:

Get on https://graph.facebook.com/?id=$url randomly fails with

javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
    at sun.security.ssl.SSLSessionImpl.getPeerCertificates(SSLSessionImpl.java:526)
    at org.apache.http.nio.conn.ssl.SSLIOSessionStrategy.verifySession(SSLIOSessionStrategy.java:205)
    at org.apache.http.nio.conn.ssl.SSLIOSessionStrategy$1.verify(SSLIOSessionStrategy.java:188)
    at org.apache.http.nio.reactor.ssl.SSLIOSession.doHandshake(SSLIOSession.java:354)
    at org.apache.http.nio.reactor.ssl.SSLIOSession.isAppInputReady(SSLIOSession.java:503)
    at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(AbstractIODispatch.java:120)
    at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor.java:162)
    at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(AbstractIOReactor.java:337)
    at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(AbstractIOReactor.java:315)
    at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:276)
    at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)
    at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:588)
    at java.lang.Thread.run(Thread.java:834)

Code running in docker openjdk:11.0.1-jre-sid

from spring-social-facebook.

thithuhanguyen avatar thithuhanguyen commented on August 11, 2024 1

@attybro

Sent with GitHawk

from spring-social-facebook.

attybro avatar attybro commented on August 11, 2024

Hello @alpeshvas, I am facing the same ("peer authentication") problem.
Have you solved the problem yet?

from spring-social-facebook.

lazarai avatar lazarai commented on August 11, 2024

Also curious if you managed to fix it. I'm having the same issue and can't find any leads. The funny part is, this happens only on the every other request, so one works, one doesn't. @alpeshvas

from spring-social-facebook.

thithuhanguyen avatar thithuhanguyen commented on August 11, 2024

Sent with GitHawk

from spring-social-facebook.

thithuhanguyen avatar thithuhanguyen commented on August 11, 2024

Hà Nội

Sent with GitHawk

from spring-social-facebook.

emmanuelt88 avatar emmanuelt88 commented on August 11, 2024

Hey
I'm having the same issue but with Oracle JDK as well.
I tried adding the https.protocols, I thought it was fixed with that till today that failed again after 3 days running ok and as @IRus said it fails randomly for me as well.

Any other options I could try?
Context:

  • Running on Docker with jdk-11.0.2
  • Springboot 2.1.2.RELEASE
  • Running on Amazon ECS (I tried locally and the same issue)

Any help will be really appreciated.

Thanks in advance!

from spring-social-facebook.

RoieBeck avatar RoieBeck commented on August 11, 2024

Hello,
this issue still happen when using spring social facebook,
the fix(https jvm flag) you offered does work, but I was wonderting when the issue will be fixed?
details:
OpenJdk 11.0.2

Spring social facebook LTS(2.0.3)
<dependency> <groupId>org.springframework.social</groupId> <artifactId>spring-social-facebook</artifactId> <version>2.0.3.RELEASE</version> </dependency>

tnx

from spring-social-facebook.

anatolyw avatar anatolyw commented on August 11, 2024

If it is still actual for someone:
the issue is TLS related as it was mentioned by @okohub and a fix with Java VM-Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 works. But the real problem is the bug in JDK 11.0.2 and nothing to do with spring-social-facebook
See here: https://bugs.openjdk.java.net/browse/JDK-8213202
You have to upgrade your JDK.
Note for macOS users:
if you use brew for java installation (ex: brew cask install java11),
it still installs openjdk-11.0.2.jdk (on the moment of writing this reply).
Use the one from adoptopenjdk (install it manually with .pkg file): https://adoptopenjdk.net/index.html?variant=openjdk11&jvmVariant=hotspot
Tested with v11.0.6 the problem has gone!

from spring-social-facebook.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.