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

@Leah_James,

So far you’ve been doing great. Broadly following is the procedure to how app can access the API key to make the api call as you are expecting,

  1. Once an ‘iparam’ in mentioned in iparams.json file, platform will render the UI automatically so you don’t have to. Once the $fdk run is running on :10001, visit localhost:10001/custom_configs (a suggestion on CLI will also apprear…)
  2. As you open the browser, you’ll see a simulation page. Something like the one you’ve discovered. But there would be a text field with display name as API Key.
  3. Enter the API key up and click ‘Install’. This simulation is similar to when user clicks on the Install btn.
  4. You will notice under .fdk/ folder API key entered is stored.
  5. In server.js I assume your code is trying to run under a product event. For example, let’s say onConversationCreate.
  6. You can simulate the onConversationCreate by opening another simulation page http://localhost:10001/web/test. Just select onConversationCreate and click on simulate
  7. That is when the API key that you stored will be substituted in args so that you can make the request.

From the information that you’ve shared,

The iparams value is an empty object. It suggests that you might not have done #1 to #3 steps. Let me know if you see any issue in between any of these steps.