Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Library fails to send requests after network connection is restored #12

Closed
DeividasK opened this issue Aug 9, 2019 · 2 comments

Comments

@DeividasK
Copy link

commented Aug 9, 2019

Hi,

I'm trying to allow players to reconnect if they go offline but later reconnect. However, that doesn't seem to be working.

Steps to reproduce

  1. Start an app without an internet connection, e.g. with Wi-fi turned off.
  2. Attempt to send a request when offline, e.g. PlayFabClientApi.LoginWithCustomID. The request should fail as expected.
  3. Turn wifi on.
  4. Attemp to send a request without restarting the app.

Actual outcome

Request fails with the following error message:

ERROR:SCRIPT: Unable to create HTTP connection to 'https://TitleId.playfabapi.com/Client/LoginWithCustomID?sdk=DefoldSdk_0.59.190625'. No route to host?
DEBUG:SCRIPT: 
{ --[[0x10bcefed0]]
  error = "ServiceUnavailable",
  errorCode = 1123,
  code = 0,
  status = 0,
  errorMessage = "Could not deserialize reseponse from server: "
}

Expected outcome

Request should work

Let me know if there's any additional info I could provide to help with debugging.

@britzl

This comment has been minimized.

Copy link

commented Aug 9, 2019

It looks like you are using Defold, is this correct?

@DeividasK

This comment has been minimized.

Copy link
Author

commented Aug 11, 2019

@britzl yes, it is. I'm going to close this issue as I think Playfab lib has nothing to do with this and it's to do with Defold behaviour. The reason I say this is because I've tried the same flow with http.request() and ran into the same issue.

@DeividasK DeividasK closed this Aug 11, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.