Null value in URL Query Parameters

I have some incoming POST WebHooks that include data in both the body and query parameters. I enabled “includeQuery” but I’m getting an empty object.

Here’s the request in Postman:

curl --location 'https://hooks.kellerinteriors.com/w8wgag35o0naev?foo=bar' \
--header 'Content-Type: application/json' \
--data '{"test":"value"}'

Here’s the result received:

{
	"request-query" : {},
	"test" : "value"
}

The docs says that this is also available as a script parameter but that’s not working either. Any ideas?

  • Dave

Hey Dave,

How are you enabling the includeQuery setting? Are you passing your parameters along? It looks like you’re proxying the requests somewhere that is not OttoFMS.

-Kyle

@kduval That’s right… I’m enabling that in my Hookdeck destination.

https://app.kellerinteriors.com/otto/receiver/KI_ProcessQueue.fmp12/lowes-support-request-create?includeQuery=true&apiKey=<removed>

I tried including that in my Postman request but that didn’t work either.

OK… so I bypassed Hookdeck and sent it directly to OttoFMS and it’s working there. I’m not sure what the issue is, but it’s definitely in Hookdeck.

Yeah I’m guessing Hookdeck is somehow not passing along your initial query params, it looks like it is properly getting the includeQuery argument.

-Kyle

I found the issue. Hookdeck was overwriting the query params. I just need to do a transformation to add to the existing query params instead. Thanks @kduval!

1 Like

No problem!! Glad we got it figured out

-Kyle