We've Moved! Please visit our new and improved forum over at our new portal: https://portal.plumvoice.com/hc/en-us/community/topics

Header value being truncated when using <data>

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

Post Reply
srmoser430
Posts: 20
Joined: Thu Oct 19, 2017 3:40 pm

Header value being truncated when using <data>

Post by srmoser430 »

Hi Support Team,

I need your help re: the following code segment:

<log>
<value expr="header_str"/>
</log>

<data name="resp_nearest" src="{{appURL('api/v1/schedule')}}" accept="application/json" method="raw"
enctype="application/json"
headersexpr="header_str" rawexpr="getNearestVisitString(orgid, caregiver.cid)"/>


Here's the issue I'm experiencing:
  • - I log the value of header_str and can see that it is set correctly (it happens to be an "Authorization: Bearer <token>" header with token that is 340 characters in length) immediately before its use in the <data> tag.
    - When I call my URL using the <data> tag, the request gets to my server correctly with the "Authorization: Bearer <token>" header included. However, the token has been truncated to 105 characters so my request fails authentication.
Can you think of a reason why the token value gets truncated when using the <data> tag?

Thanks,
Scott Moser

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Header value being truncated when using <data>

Post by support »

Hi Scott,

Thank you for bringing this to our attention. Our engineers are looking into it, and we will let you know when there is an update.

Regards,
Plum Support

srmoser430
Posts: 20
Joined: Thu Oct 19, 2017 3:40 pm

Re: Header value being truncated when using <data>

Post by srmoser430 »

Thanks...

Can you give me an ETA on when I can expect a response? My development is stalled until I can support authentication to my API.

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Header value being truncated when using <data>

Post by support »

Hi Scott,

We expect to have a patch deployed for this issue by EOB today. We will let you know when it is deployed.

Regards,
Plum Support

support
Posts: 3632
Joined: Mon Jun 02, 2003 3:47 pm
Location: Boston, MA
Contact:

Re: Header value being truncated when using <data>

Post by support »

Hi Scott,

The patch had now been deployed. Please let us know if you are still experiencing this issue.

Regards,
Plum Support

srmoser430
Posts: 20
Joined: Thu Oct 19, 2017 3:40 pm

Re: Header value being truncated when using <data>

Post by srmoser430 »

I've been testing since earlier this morning and it seems to be working well.

Thanks for your help with this important update!

Scott

Post Reply