Error: 'JWT strings must contain exactly 2 period characters. Found: 1

Thank you, Saif.

The answers to your questions:

  1. I see you are using request npm package. Did you [list them in the manifest.json]…
  • Yes.
  "platform-version": "2.0",
  "product": {
    "freshchat": {}
  },
  "dependencies": {
    "request": "2.85.0",
    "base-64": "0.1.0",
    "moment":"2.22.2"
}
}
  1. When you run the CLI by $ fdk run , can you console.log(args) and share a snippet on this thread. Just trying to see if there is a problem in how we are accessing the apikey.
  • Sure
{ data:
       { conversation:
      { user_id: '678a7a77-de58-4f7a-a707-fd8d0c7699ad',
        reopened_time: '2019-07-29T14:51:56.933Z',
        assigned_time: '2019-07-29T14:55:00.234Z',
        created_time: '2019-07-25T10:01:23.564Z',
        response_due_type: 'NO_RESPONSE_DUE',
        conversation_id: '509040f3-e601-4c82-82a2-6e5dcc813d6e',
        app_id: '032c91b6-4b46-4f5b-adcb-102c72cd4efa',
        messages: [Array],
        status: 'new',
        channel_id: 'd2f99658-ff98-44b8-b5c1-3a19dbfe2a2d',
        assigned_agent_id: '2823233e-7122-4f87-9d56-38aaaaeb676a',
        assigned_group_id: '40753ac3-1f66-40d9-b903-23db0a9a70b0' },
     associations:
      { group: [Object],
        channel: [Object],
        user: [Object],
        agent: [Object] },
     actor:
      { type: 'system',
        sub_type: 'user',
        id: '2823233e-7122-4f87-9d56-38aaaaeb676a',
        first_name: 'Jon',
        last_name: 'Doe',
        email: 'jon.doe@freshworks.com',
        phone: '9876543212',
        avatar: [Object] },
     changes: { model_changes: [Object] } },
      region: 'US',
      account_id: '438346485531979',
      domain: 'example.freshchat.com',
      event: 'onConversationUpdate',
      timestamp: 1564394238524,
      version: '1.0.0',
      iparams: {} } 

Content of iparams.json:

image