Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kuruk-mm committed Dec 11, 2023
1 parent a37c351 commit a09d25a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions godot/src/logic/player/player_identity.gd
Original file line number Diff line number Diff line change
Expand Up @@ -28,15 +28,13 @@ func async_fetch_profile(address: String, lambda_server_base_url: String) -> voi
return

if response is PromiseError:
if response._error_description.find("404") != -1:
if response.get_error().find("404") != -1:
# Deploy profile?
self.set_default_profile()
print("Profile not found " + url)
else:
self.set_default_profile()
printerr(
"Error while fetching profile " + url, " reason: ", response._error_description
)
printerr("Error while fetching profile " + url, " reason: ", response.get_error())
return

if not self._update_profile_from_lambda(response):
Expand Down Expand Up @@ -65,7 +63,7 @@ func async_deploy_profile(new_profile: Dictionary) -> void:
)
var response = await PromiseUtils.async_awaiter(promise_req)
if response is PromiseError:
print(response._error_description)
print(response.get_error())

var test_file = FileAccess.open("test.request.bin", FileAccess.WRITE)
test_file.store_buffer((ret as Dictionary).get("body_payload"))
Expand Down

0 comments on commit a09d25a

Please sign in to comment.