# Message Cant Be Sent?

**URL:** <https://forum.defold.com/t/message-cant-be-sent/72940>\
**Category:** Questions\
**Created:** [March 23, 2023, 2:45pm UTC](https://forum.defold.com/t/message-cant-be-sent/72940 "2023-03-23T14:45:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaintneptune](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/yaintneptune/32/31815_2.png) [@yaintneptune](https://forum.defold.com/u/yaintneptune)\
**Post date:** [March 23, 2023, 2:45pm UTC](https://forum.defold.com/t/message-cant-be-sent/72940/1 "2023-03-23T14:45:54Z")

</div>

Hello, I have been attempting to pass a message from a GUI script under one collection to a regular script in another collection. I have used the url checking code in the regular script and it is the correct absolute URL. (main\_collection:/background#background). The same message i send to the proxy loadign script worlks fine aswell. If you need anymore information please ask. Much Obliged

```lua
Error Script
ERROR:SCRIPT: menus/character_select/character_select.gui_script:17: Could not send message 'player == brawler' from 'character select collection:/go#character_select' to 'main_collection:/background#background'.
stack traceback:
  [C]:-1: in function post
  menus/character_select/character_select.gui_script:17: in function <menus/character_select/character_select.gui_script:5>

```

Sending Script (character\_select.gui\_script)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/6/9/6924dc30d008126919c316fc88175e6d587efdf5.png)

Recieving Script (background.script)

 ![image](https://forum-defold-uploads.b-cdn.net/original/3X/3/1/311f9f18008e0e910622e0e14c5981c65c977697.png)

---

<div class="post-metadata">

**Author:** ![britzl](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/britzl/32/23_2.png) [@britzl](https://forum.defold.com/u/britzl)\
**Post date:** [March 23, 2023, 2:53pm UTC](https://forum.defold.com/t/message-cant-be-sent/72940/2 "2023-03-23T14:53:30Z")

</div>

> [@yaintneptune](#):
>
> ```lua
> to 'main_collection:/background#background'
> 
> ```

Are you sure the id of that receiving collection is `main_collection`?

---

<div class="post-metadata">

**Author:** ![Haath](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/haath/32/27661_2.png) [@Haath](https://forum.defold.com/u/Haath)\
**Post date:** [March 23, 2023, 2:54pm UTC](https://forum.defold.com/t/message-cant-be-sent/72940/3 "2023-03-23T14:54:50Z")

</div>

Try printing out what is returned from an empty `msg.url()` in all of your scripts.

```lua
print(msg.url())

```

It should show you exactly what the url of each script is, and you can use it to verify your addresses.

---

<div class="post-metadata">

**Author:** ![yaintneptune](https://forum-defold.b-cdn.net/user_avatar/forum.defold.com/yaintneptune/32/31815_2.png) [@yaintneptune](https://forum.defold.com/u/yaintneptune)\
**Post date:** [March 27, 2023, 8:37am UTC](https://forum.defold.com/t/message-cant-be-sent/72940/4 "2023-03-27T08:37:21Z")

</div>

> [@Haath](#):
>
> `print(msg.url())`

I have used that in the recieving script and copied and pasted the url into the msg.post for the script i am trying to send from and it still gives the same error unfortunately.
