You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In storage_reference.gd : func get_string() -> StorageTask: var task := get_data() task.connect("task_finished", self, "_on_task_finished", [task, "stringify"]) return task func _on_task_finished(task : StorageTask, action : String) -> void: match action: "stringify": if typeof(task.data) == TYPE_RAW_ARRAY: task.data = task.data.get_string_from_utf8()
In storage.gd, line 310 in _finish_request method: task.emit_signal("task_finished", task.data)
When emitting signal, an error is logged:
E 0:00:18.407 emit_signal: Error calling method from signal 'task_finished': 'Reference(storage_reference.gd)::_on_task_finished': Method expected 2 arguments, but called with 3..
<C++ Source> core/object.cpp:1242 @ emit_signal()
storage.gd:314 @ _finish_request()
storage.gd:99 @ _internal_process()
storage.gd:51 @ _notification()
Couldn't find a way to solve it for now, I just commented the task.connect and it does not impact the rest of my project
The text was updated successfully, but these errors were encountered:
Something that's weird is that our two codebases are different - you should try getting the one from here on github and using that instead, to see if it's something you changed. I don't think it is, but it's weird and I'm not sure why/what would be giving that error in this case (as in I know what is actually giving it, but not what would cause it).
In storage_reference.gd :
func get_string() -> StorageTask: var task := get_data() task.connect("task_finished", self, "_on_task_finished", [task, "stringify"]) return task
func _on_task_finished(task : StorageTask, action : String) -> void: match action: "stringify": if typeof(task.data) == TYPE_RAW_ARRAY: task.data = task.data.get_string_from_utf8()
In storage.gd, line 310 in _finish_request method:
task.emit_signal("task_finished", task.data)
When emitting signal, an error is logged:
E 0:00:18.407 emit_signal: Error calling method from signal 'task_finished': 'Reference(storage_reference.gd)::_on_task_finished': Method expected 2 arguments, but called with 3..
<C++ Source> core/object.cpp:1242 @ emit_signal()
storage.gd:314 @ _finish_request()
storage.gd:99 @ _internal_process()
storage.gd:51 @ _notification()
Couldn't find a way to solve it for now, I just commented the task.connect and it does not impact the rest of my project
The text was updated successfully, but these errors were encountered: