Forum Discussion

JeffPeterson1's avatar
JeffPeterson1
Qrew Captain
6 months ago

Problems constructing Headers in pipelines 'make request' channel

I'm trying to send a request to the fedex api for checking package status.   I have everything working up to the step where the actual request is being made and it appears the headers are not being constructed properly by the pipeline channel:

Here,  I'm just using the example, but instead of headers like:
X-One:One
X-Two:Two

I'm getting this weird structure where it's only passing the names and values as arrays?   This keeps getting rejected by the fedex api stating that the token is missing.

 

I'm sending the headers like this, per the instructions beneath the headers section, but I get the same malformed result in the output:

Has anyone else run into this or knows what the problem is here?  I've been stuck on this for hours. 

  • JeffPeterson1's avatar
    JeffPeterson1
    6 months ago

    It ended up that I needed to add the int filter to my tracking number:  {{a.tracking|int}}.  It was passing it with .0 after which was causing the error.  


  • Maybe the issue is using "code mode" and it isn't recognizing the line breaks?

    I don't often have issues with headers, but I'm pretty sure I haven't had to use "code mode" to generate them.

    Let us know if you are able to solve this 👍

    -Sharon

    • JeffPeterson1's avatar
      JeffPeterson1
      Qrew Captain

      It ended up that I needed to add the int filter to my tracking number:  {{a.tracking|int}}.  It was passing it with .0 after which was causing the error.