Header value being truncated when using <data>

Questions and answers about IVR programming for Plum DEV

Moderators: admin, support

  • Author
  • Message
Offline

srmoser430

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

Header value being truncated when using <data>

PostTue Aug 28, 2018 11:06 am

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
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Header value being truncated when using <data>

PostWed Aug 29, 2018 9:21 am

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
Offline

srmoser430

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

Re: Header value being truncated when using <data>

PostWed Aug 29, 2018 3:56 pm

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.
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Header value being truncated when using <data>

PostThu Sep 06, 2018 9:01 am

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
Offline

support

  • Posts: 3628
  • Joined: Mon Jun 02, 2003 3:47 pm
  • Location: Boston, MA

Re: Header value being truncated when using <data>

PostFri Sep 07, 2018 8:59 am

Hi Scott,

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

Regards,
Plum Support
Offline

srmoser430

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

Re: Header value being truncated when using <data>

PostFri Sep 07, 2018 10:15 am

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

Thanks for your help with this important update!

Scott

Return to Plum DEV Q&A

Who is online

Users browsing this forum: No registered users and 1 guest

cron