# Node-red-contrib-spark

**URL:** <https://discourse.nodered.org/t/node-red-contrib-spark/85555>\
**Category:** General\
**Created:** [15 February 2024 10:16 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555 "2024-02-15T10:16:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RafaBravo](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@RafaBravo](https://discourse.nodered.org/u/RafaBravo)\
**Post date:** [15 February 2024 10:16 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/1 "2024-02-15T10:16:03Z")

</div>

I try to work with node-red-contrib-spark not communicate with cisco webex team. but I get a 400 request error. I get a temporary beare token from the web [https://developer.webex.com/docs/api/v1/messages/create-a-message](https://developer.webex.com/docs/api/v1/messages/create-a-message)  
I try to create the message from api node, it inject this json in the input:

```auto
{
    "body": {
        "toPersonEmial": "myEmail@gmail.com",
        "text": "HOLA DESDE NODE-RED"
    }
}

```

and this is the error:

```auto
error 400: Message destination could not be determined. 
Provide only one destination in the roomId, toPersonEmail, or toPersonId field | trackingId: ROUTERGW_a02f391d-58a4-480b-9089-ac94f2ff3e22

```

can someone help me, thanks

---

<div class="post-metadata">

**Author:** ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)\
**Post date:** [15 February 2024 10:59 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/2 "2024-02-15T10:59:28Z")

</div>

> [@RafaBravo](#):
>
> `"toPersonEmial"`

Is that a typo, should it be ` "ToPersonEmail"` ?

---

<div class="post-metadata">

**Author:** ![RafaBravo](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@RafaBravo](https://discourse.nodered.org/u/RafaBravo)\
**Post date:** [15 February 2024 11:40 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/3 "2024-02-15T11:40:01Z")

</div>

I get the same error with that change

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [15 February 2024 17:09 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/4 "2024-02-15T17:09:48Z")

</div>

> [@RafaBravo](#):
>
> `"toPersonEmial": "myEmail@gmail.com",`

Note the spelling and capitalisation in the error 👇 Vs what you have ☝

> [@RafaBravo](#):
>
> Provide only one destination in the roomId, toPersonEmail

### `toPersonEmail`

---

<div class="post-metadata">

**Author:** ![RafaBravo](https://avatars.discourse-cdn.com/v4/letter/r/a8b319/32.png) [@RafaBravo](https://discourse.nodered.org/u/RafaBravo)\
**Post date:** [19 February 2024 11:00 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/5 "2024-02-19T11:00:38Z")

</div>

if it was a typo. the 400 error was not the same, confusion.  
It seems that you can't send a message to the same email configured as profile name, I changed the email and it worked. thank you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 March 2024 11:01 UTC](https://discourse.nodered.org/t/node-red-contrib-spark/85555/6 "2024-03-04T11:01:16Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
