question

icaro avatar image
icaro asked

Error 1123

Hi,


I'm using Playfab+Unity and i'm getting error 1123 on android devices. Can you proved info of how to solve this issue.?

Ty

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

icaro avatar image icaro commented ·

I just got more info about this bug.

This bug happens when I try to call LoginWithFacebook or LoginWithCustomID. It was working 2 days ago, but since yesterday i'm getting this error every time i try to login.

Note: We didn't change anything in our side that could cause this issue.
Note2: We are using Unity Playfab SDK

0 Likes 0 ·
1807605288 avatar image
1807605288 answered

Changing the PlayFab code is not necessary. If you look 3 lines up from your change, you see we already made that option available to you. You can set it multiple ways:

As far as errors when you use WWW:
What version of Unity are you using?
What version of our SDK are you using?
Since you say the error happens on login, I assume that you can't make ANY calls with WWW, but I'd like you to confirm that.
Can you post any error logs, or tracebacks with this error? For android, you should be able to get logs using ADB or Android Studio.


untitled.png (166.9 KiB)
2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

icaro avatar image icaro commented ·

What version of Unity are you using?

Unity 2017.2.0f3

What version of our SDK are you using?
I don't know where i can find this info, but I updated playfab last week.


Since you say the error happens on login, I assume that you can't make ANY calls with WWW, but I'd like you to confirm that.

The error is happening in the login, so there's no other playfab call.


Can you post any error logs, or tracebacks with this error? For android, you should be able to get logs using ADB or Android Studio.
I checked the log and there's no info.(Even in the log without the unity filter.)

Also, everything is working properly now after this change.
But if you want any other info to understand better what happened you can ask me :)

0 Likes 0 ·
1807605288 avatar image 1807605288 ♦ icaro commented ·

UnityWWW is the default option because we consider it to be the more stable and preferrable choice. If you have found an error with it, we'd like to resolve it.

If you're willing, please change it back to WWW, and give us an ADB log of the exception when it's NOT fixed.

0 Likes 0 ·
brendan avatar image
brendan answered

So, error 1123 is "ServiceUnavailable". One possibility would be the error from this post: https://community.playfab.com/questions/12034/why-do-i-get-error-code-1123-failed-to-connect-to.html. If that's not the issue you're encountering, can you get a Wireshark capture with the SSL packets decrypted (https://wiki.wireshark.org/SSL#Complete_SSL_decryption_walk_through) and send that to us, so that we can have a look?

5 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

icaro avatar image icaro commented ·

I'll try to get this wireshark capture.

But what is really strange is that this issue is happening only in android devices. I don't get this issue on unity editor and ios.

0 Likes 0 ·
brendan avatar image brendan icaro commented ·

Agreed that's odd, but without seeing the actual requests/responses, it's impossible to say what the cause is. The capture should help to clarify this.

0 Likes 0 ·
icaro avatar image icaro brendan commented ·

Brendan,

How can I decrypt the ssl server if I don't have access to the ssl key you use in your webserver?
The guide you sent me is using an a local key with a local server, i've researched about it and i can't do it without the webserver private key:
"You're asking: "How can I decrypt arbitrary TLS-protected TCP traffic without the private key." The answer is, of course, you cannot do that. That's why anyone uses TLS to begin with."

https://stackoverflow.com/questions/23661928/tools-like-fiddler-for-ssl-encrypted-tcp-traffic

Can i send you the current apk of the project or the encrypted data?

0 Likes 0 ·
Show more comments
1807605288 avatar image 1807605288 ♦ commented ·

I think a normal Unity/C# stacktrace would be a more useful to start with. We don't even know where the failure is happening. Perhaps it's not even making the call.

0 Likes 0 ·
icaro avatar image
icaro answered

We found out a workaround to solve the issue. It seems to be a problem with "PlayFabWww", because the error was solved after i forced to use "PlayFabWebRequest".

Below, you can find the line we added to solve the issue.


capturar.png (28.8 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amazdeh avatar image
amazdeh answered

Should we revert from 2017.2 or the issue will be fixed soon enough. HttpWebRequest is not always as stable as WWW or at least was not when we tried it about a year ago

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1807605288 avatar image 1807605288 ♦ commented ·

We are aware of a performance issue with HttpWebRequest when building a GameServer, or a client process that has been running constantly for a very long time (>24 hours). This has not yet been fixed.

There should be no issues with UnityWWW. If you find an issue, please report it, along with a stacktrace, and any debug information you can discover.

If you are using the latest PlayFab UnitySdk version, there should be no issues which are dependent on your version of Unity. You can use any version of Unity. If you find an issue based on a specific Unity version, please report it, along with a stacktrace, and any debug information you can discover.

Your first step should be to update to the latest version of the PlayFab UnitySDK:
via our Editor Extensions Panel: https://api.playfab.com/downloads/unity-edex
via direct unityPackage download: https://api.playfab.com/downloads/unity-v2ap

0 Likes 0 ·
icaro avatar image
icaro answered
@amazdeh
I changed back to "Unity Www" but with "compress api data" disable and the problem doesn't happen anymore.


Hope it can help you too.


PlayFabSharedSettings


capturar.png (10.2 KiB)
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amazdeh avatar image
amazdeh answered

@icaro many thanks but mine is identical to you and i get NullReferenceException when calling login, Strangely it seems another call of mine which is reading from title data can call (it returns an error since I'm not logged in)


1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1807605288 avatar image 1807605288 ♦ commented ·

Without a stack trace, it's hard to verify.

However, this sounds like a Unity issue that we've already worked-around:

https://community.playfab.com/questions/14434/unity-login-eror.html

0 Likes 0 ·
amazdeh avatar image
amazdeh answered

@Paul Gilmore

Attached is a log for a Unity WWW usage in 2017.2

Also using HttpWebRequest is very unstable in 2017.2 and fails once per couple of requests.

Regarding the log there seem to be a NullReference Exception when using WWW

Also I am calling a read operation of title data without checking I'm logged in or not and that request seem to be sent and receives a correct error response saying I'm not logged in.

Hope this helps. Please let me know what should be done. Seems a WWW regression on Android to me.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

amazdeh avatar image amazdeh commented ·
0 Likes 0 ·
1807605288 avatar image 1807605288 ♦ amazdeh commented ·

From this log I can verify it's EXACTLY the issue we've already fixed.

Update your PlayFab UnitySDK to the latest version and you'll be fixed.

0 Likes 0 ·
amazdeh avatar image
amazdeh answered

Thanks Paul yes latest fixed it. I guess you updated it after I tested with latest version? The log wasn't maybe for latest SDK but I tested the latest and it wasn't working before!! maybe I did a mistake.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.