Comments (10)
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.
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.
Sent with GitHawk
from spring-social-facebook.
Hello @alpeshvas, I am facing the same ("peer authentication") problem.
Have you solved the problem yet?
from spring-social-facebook.
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.
Sent with GitHawk
from spring-social-facebook.
Hà Nội
Sent with GitHawk
from spring-social-facebook.
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.
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.
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)
- SocialContextOperations: return user picture in getAllMutualFriends response
- Offset is ignored
- Expected 3.0.0 Release HOT 4
- Missing encoding payload for Facebook
- Getting org.springframework.social.ExpiredAuthorizationException 1 min after login
- Add getTestUsers endpoint to TestUserOperations
- Is this a dead project? No Release for long time? HOT 8
- Upgrade to Graph API 2.10? HOT 2
- Configuration processor is not configured HOT 3
- End of support of Facebook Api v2.5 on 12 April 2018 HOT 8
- food_styles should be List<String> and not String from graph version v2.6
- Post video content to page
- Redirect_Uri use http instead of https with Spring social Facebook Login on Heroku HOT 8
- Insufficient permission - Unable to post to Facebook (similar response from linkedin api too)
- API 2.9 disable in a few days. No release working with 2.10
- Facebook login exception after API 2.9 is disabled HOT 3
- Spring Social died on JULY 03, 2018
- Facebook login exception starting November 2020 HOT 1
- Cannot run build gradle eclipse due to Unauthorized
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-social-facebook.