# Error trying to auth Godot

**URL:** <https://forum.heroiclabs.com/t/error-trying-to-auth-godot/3424>\
**Category:** Local Setup\
**Tags:** getting-started\
**Created:** [January 15, 2023, 8:15pm UTC](https://forum.heroiclabs.com/t/error-trying-to-auth-godot/3424 "2023-01-15T20:15:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BainBan](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/bainban/32/1503_2.png) [@BainBan](https://forum.heroiclabs.com/u/BainBan)\
**Post date:** [January 15, 2023, 8:15pm UTC](https://forum.heroiclabs.com/t/error-trying-to-auth-godot/3424/1 "2023-01-15T20:15:51Z")

</div>

```auto
extends Node

var client : NakamaClient
var session : NakamaSession
var socket : NakamaSocket
var username = "example"
var play_service

func _ready():
	if Engine.has_singleton("GodotPlayGamesServices"):
		play_service = Engine.get_singleton("GodotPlayGamesServices")

		play_service.init(true, true, true, "id)
		play_service.connect("_on_sign_in_success", self, "ConnectToNakama")
		play_service.connect("_on_sign_in_failed", self, "_on_sign_in_failed")

		play_service.signIn() # <-

func _on_sign_in_failed(status:int) -> void:
	pass
func ConnectToNakama(account_id:String) -> void:
	client = Nakama.create_client('defaultkey', "ip", 7351,
	'http', 3, NakamaLogger.LOG_LEVEL.ERROR)
	session = yield(client.authenticate_device_async(account_id, username), 'completed')
	if session.is_exception():
		print("connection has failed " + session.exception.message)
		return
	
	socket = Nakama.create_socket_from(client)
	yield(socket.connect_async(session), "completed")
	
	print("Connected!")
	

```

DEBUG === Freeing request 1  
01-15 22:52:00.542 20046 20263 I godot : === Nakama : DEBUG === Request 1 returned response code: 404, RPC code: 5, error: Not Found  
01-15 22:52:00.542 20046 20263 I godot : connection has failed Not Found  
This is My code I’m a beginner so don’t roast me :\< Basically, it connects with google, then takes the id of the user and tries to make an account but I get this error: “connection has failed Not Found”  
What can I do what’s the problem? It tries to create an account but I get that error. What can I do?

---

<div class="post-metadata">

**Author:** ![lugehorsam](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/lugehorsam/32/314_2.png) [@lugehorsam](https://forum.heroiclabs.com/u/lugehorsam)\
**Post date:** [January 17, 2023, 12:06pm UTC](https://forum.heroiclabs.com/t/error-trying-to-auth-godot/3424/3 "2023-01-17T12:06:09Z")

</div>

It looks like this line is missing a quotation mark.

> [@BainBan](#):
>
> `play_service.init(true, true, true, "id)`

Also, you’ll want to connect to port 7350 as this is the REST port.
