# HTTP Downlink problems : no match founds with curl

**URL:** <https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367>\
**Category:** Uncategorized\
**Created:** [August 20, 2020, 11:39am UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367 "2020-08-20T11:39:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![EPAI](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/epai/32/25844_2.png) [@EPAI](https://www.thethingsnetwork.org/forum/u/EPAI)\
**Post date:** [August 20, 2020, 11:39am UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/1 "2020-08-20T11:39:00Z")

</div>

Dear All,

I try to send data to my end node using HTTP. But when I send the following Curl command, I’ve a “no match found” returned!!  
The uplink is ok and test with [https://hookbin.com/](https://hookbin.com/)

`curl -X POST --data '{"dev_id":"myNode","port":1,"confirmed":false,"payload_fields":{"led":true}}' https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/myApp/test?key=ttn-account-v2.my_secret`

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [August 20, 2020, 12:37pm UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/2 "2020-08-20T12:37:39Z")

</div>

Please show the full/exact error message, and please use `curl -i` or even `curl -v` for more verbose logging.

> [@EPAI](#):
>
> The uplink is ok and test with [https://hookbin.com/](https://hookbin.com/)

Is the URL you’re using the same as given in the `downlink_url` attribute in the JSON payload that is posted to Hookbin? Showing us `"dev_id":"myNode"` in the JSON message along with `/myApp/test` in the URL is quite confusing, if that’s how you redacted some details.

If you’re on Windows, then see [Using curl or Postman for the HTTP Integration on Windows](https://www.thethingsnetwork.org/forum/t/using-curl-or-postman-for-the-http-integration-on-windows/12467).

Also, please show the code of your Encoder in TTN Console. (Or, if you don’t have one, then don’t use `payload_fields`.)

---

<div class="post-metadata">

**Author:** ![EPAI](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/epai/32/25844_2.png) [@EPAI](https://www.thethingsnetwork.org/forum/u/EPAI)\
**Post date:** [August 20, 2020, 1:27pm UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/3 "2020-08-20T13:27:41Z")

</div>

Thanks Arjan;

Same message with curl -i.

Here my command: `curl -i -X POST --data '{"dev_id":"myNode","port":1,"confirmed":false,"payload_fields":{"led":true}}' https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/myApp/test?key=ttn-account-v2.my_secret`

And here the response: `no matches found: https://integrations.thethingsnetwork.org/ttn-eu/api/v2/down/myApp/test?key=ttn-account-v2.my_secret`

Yes, the URL is an copy past of the given in the downlink\_url

I’m not on Windows

The Encoder used:

```javascript
function Encoder(object, port) {
  // Encode downlink messages sent as
  // object to an array or buffer of bytes.
  var bytes = [];

  if (port === 1) bytes[0] = object.led ? 1 : 0;

  return bytes;
}

```

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [August 20, 2020, 2:51pm UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/4 "2020-08-20T14:51:49Z")

</div>

If `curl -i` does not give you any [headers as sent by the server](https://www.thethingsnetwork.org/forum/t/having-trouble-sending-downlink-with-http-integration/38217/2), then this is some weird problem (with a weird message) from your local system, not from TTN’s server. Maybe some hidden newline in the command line?

Note that only the key is secret; redacting the other parts of the actual command you’re using is just adding confusion.

---

<div class="post-metadata">

**Author:** ![EPAI](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/epai/32/25844_2.png) [@EPAI](https://www.thethingsnetwork.org/forum/u/EPAI)\
**Post date:** [August 20, 2020, 3:31pm UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/5 "2020-08-20T15:31:53Z")

</div>

It’s working now. Juste added double quotes for URL!!!

Thanks a lot Arjan

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [August 20, 2020, 3:48pm UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/6 "2020-08-20T15:48:41Z")

</div>

Ah, does the secret hold some funny character(s)? And what OS are you using?

---

<div class="post-metadata">

**Author:** ![EPAI](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/epai/32/25844_2.png) [@EPAI](https://www.thethingsnetwork.org/forum/u/EPAI)\
**Post date:** [August 24, 2020, 9:07am UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/7 "2020-08-24T09:07:25Z")

</div>

Sorry for the delay…

I’m using MAC OS and no the secret hold no funny character…

Thanks very much for your help Arjan

---

<div class="post-metadata">

**Author:** ![arjanvanb](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/arjanvanb/32/46626_2.png) [@arjanvanb](https://www.thethingsnetwork.org/forum/u/arjanvanb)\
**Post date:** [August 24, 2020, 9:20am UTC](https://www.thethingsnetwork.org/forum/t/http-downlink-problems-no-match-founds-with-curl/39367/8 "2020-08-24T09:20:22Z")

</div>

I probably should have asked: which shell. In Bash on macOS, I don’t need quotes around the URL. Good to know that on some systems it’s needed, as, I guess, apparently the shell tries to find a matching file otherwise.
