# Error says: None of the following functions can be called with the arguments supplied

**URL:** <https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594>\
**Category:** Support\
**Created:** [August 3, 2021, 11:50pm UTC](https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594 "2021-08-03T23:50:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![PopeLouis](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@PopeLouis](https://discuss.kotlinlang.org/u/PopeLouis)\
**Post date:** [August 3, 2021, 11:50pm UTC](https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594/1 "2021-08-03T23:50:34Z")

</div>

Please someone help, the following code shows the above error, what should I do?

```auto
class ChatMessage(val id: String, val text: String, val fromId: String, timestamp: Long) {
        constructor() : this(id: "", text: "", fromId: "", timestamp: -1)
    }

```

---

<div class="post-metadata">

**Author:** ![PopeLouis](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@PopeLouis](https://discuss.kotlinlang.org/u/PopeLouis)\
**Post date:** [August 3, 2021, 11:52pm UTC](https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594/2 "2021-08-03T23:52:22Z")

</div>

I am working with a project in which I need to listen to those objects from firebase

---

<div class="post-metadata">

**Author:** ![kyay10](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kyay10](https://discuss.kotlinlang.org/u/kyay10)\
**Post date:** [August 4, 2021, 12:51am UTC](https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594/3 "2021-08-04T00:51:33Z")

</div>

I think you simply need to use `id = ""` etc instead of `id: ""` because that is not valid Kotlin syntax

---

<div class="post-metadata">

**Author:** ![PopeLouis](https://avatars.discourse-cdn.com/v4/letter/p/2bfe46/32.png) [@PopeLouis](https://discuss.kotlinlang.org/u/PopeLouis)\
**Post date:** [August 4, 2021, 12:56am UTC](https://discuss.kotlinlang.org/t/error-says-none-of-the-following-functions-can-be-called-with-the-arguments-supplied/22594/4 "2021-08-04T00:56:09Z")

</div>

Wow, great!! that just worked. Sorry, just that I am new in programing and Kotlin to be precise.  
thanks oncemore kyay10…
