nguyentientoan / socialauth-net

Automatically exported from code.google.com/p/socialauth-net
0 stars 0 forks source link

Brickred.SocialAuth.NET.Core.DataParsingException: An error occurred while parsing profile data. #173

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

I used an account yahoo,(french profile)

[DataParsingException: An error occurred while parsing profile data.
Provider returned: <?xml version="1.0" encoding="utf-8"?><profile 
xmlns="http://social.yahooapis.com/v1/schema.rng" 
xmlns:yahoo="http://www.yahooapis.com/v1/base.rng" 
yahoo:uri="http://social.yahooapis.com/v1/user/ZZ55EUQOD35SIAPJ5E5WF4QOE4/profil
e"><guid>ZZ55EUQOD35SIAPJ5E5WF4QOE4</guid><birthYear>1977</birthYear><created>20
09-10-10T13:32:28Z</created><displayAge>35</displayAge><gender>M</gender><image>
<height>192</height><imageUrl>http://l.yimg.com/dh/ap/social/profile/profile_b19
3.png</imageUrl><size>192x192</size><width>192</width></image><location>Saint-Et
ienne, 
Rhone-Alpes</location><memberSince>1999-09-30T10:26:06Z</memberSince><nickname>g
uigui</nickname><profileUrl>http://profile.yahoo.com/ZZ55EUQOD35SIAPJ5E5WF4QOE4<
/profileUrl><searchable>true</searchable><updated>2013-05-21T22:40:20Z</updated>
<isConnected>false</isConnected></profile>]
   Brickred.SocialAuth.NET.Core.Wrappers.YahooWrapper.GetProfile() +3819
   Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser.SetUserAsLoggedIn() +96
   Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser.OnAuthneticationProcessCompleted(Boolean isSuccess) +52
   Brickred.SocialAuth.NET.Core.OAuth1_0Hybrid.LoginCallback(QueryParameters responseCollection, Action`1 AuthenticationCompletionHandler) +200
   Brickred.SocialAuth.NET.Core.Provider.LoginCallback(QueryParameters responseCollection, Action`1 AuthenticationHandler) +62
   Brickred.SocialAuth.NET.Core.BusinessObjects.SocialAuthUser.LoginCallback(String response) +424
   Brickred.SocialAuth.NET.Core.CallbackHandler.ProcessRequest(HttpContext context) +997
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +1130
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +114

What is the expected output? What do you see instead?
The login action

What version of the product are you using? On what operating system?
2.3.0

Please provide any additional information below.

Original issue reported on code.google.com by guillaum...@gmail.com on 28 May 2013 at 9:15

GoogleCodeExporter commented 8 years ago
Same thing happens with me. Even your live demo 
http://socialauth.in/socialauthdemo-net/Default.aspx doesnt work with Yahoo. 
Please fix this.

Original comment by nadji...@gmail.com on 29 Jul 2013 at 2:08

GoogleCodeExporter commented 8 years ago
Even I am getting the same error on both Demo as well as in my application. 
Could you please treat it as Priority and let us know the fix.
Thank you.

Original comment by chandrak...@sourcebits.com on 11 Oct 2013 at 10:22

GoogleCodeExporter commented 8 years ago

Original comment by deepak.a...@3pillarglobal.com on 11 Oct 2013 at 10:25

GoogleCodeExporter commented 8 years ago
Could you please try the same with SocialAuth.NET 2.4? 

Original comment by deepak.a...@3pillarglobal.com on 11 Oct 2013 at 10:28

GoogleCodeExporter commented 8 years ago
Ya I tried 2.4 library. If I try with 2.4, I am getting Invalid token error and 
re directing to login page for Yahoo. At the same time, even I can't Login 
using Google, giving the error "invalid client".

I have given proper consumerKey and Secrete. Same works fine for 2.3.1a patch 
but not for 2.4.

I am using Facebook, Twitter, Google and Yahoo logins, everything working 
except Yahoo.

Original comment by chandrak...@sourcebits.com on 11 Oct 2013 at 10:43

GoogleCodeExporter commented 8 years ago
In 2.4 you need to change name of GoogleWrapper to GoogleHybridWrapper to make 
it work (mentioned in release noted and change log on Wiki).

However, if you plan to continue with 2.3.1a, is there any shareable test user 
with which I can replicate the issue. I'm not getting any problems with Yahoo 
with my login (Please not, If you're relying on our live demo site, we're 
undergoing some updates. I'd recommend to host and try demo copy on your local 
machine). If you want, you can also share test user credential at 
deepak.aggarwal@3pillarglobal.com if you aren't comfortable sharing it here.

In case you don't have a user, the easiest way is to download the project, host 
and run in debugable mode. I suspect that Yahoo profile contains some character 
which YahooWrapper.cs is finding difficult to parse.
Deepak

Original comment by deepak.a...@3pillarglobal.com on 11 Oct 2013 at 11:07

GoogleCodeExporter commented 8 years ago
Sorry for the late response.

I have changed GoogleWrapper to GoogleHybridWrapper and tried still problem 
persists. I have no issues to use 2.4 but as it is not working for me so I 
degraded it to 2.3.1a.
I will share all the details to your id soon. Please check it and let me know.

Original comment by chandrak...@sourcebits.com on 16 Oct 2013 at 9:41