Forum Discussion

gabicojo's avatar
gabicojo
New Contributor
4 years ago
Solved

500 Server error when trying to generate JWT token

Hi,

 

New member here.

My Zephyr for Jira Cloud app is still trial.

Wanted to get a JWT token to test some REST API operations and here is the result:

500 Internal Server Error.

Is it because the Zephyr account is still trial?

 

 

  • Sorry,

     

    My bad. The 4 keys were supposed to be passed in the POST body and I put them in the headers...

    ... And the body had some random json object instead.

     

    Moved the keys in the body and retrieved th JWT successfully.

     

    Still, nullPointerException? Coming from Haskell where exceptions (errors) are handled as data types I am a bit skittish...!

     

    Regards,

    Gabriel 

2 Replies

  • gabicojo's avatar
    gabicojo
    New Contributor

    Sorry,

     

    My bad. The 4 keys were supposed to be passed in the POST body and I put them in the headers...

    ... And the body had some random json object instead.

     

    Moved the keys in the body and retrieved th JWT successfully.

     

    Still, nullPointerException? Coming from Haskell where exceptions (errors) are handled as data types I am a bit skittish...!

     

    Regards,

    Gabriel 

    • jdennison's avatar
      jdennison
      New Contributor

      Hi,

       

      I'm trying to generate a jwt token using postman but the documentation talks about pulling down a java repo to do so.  It shouldn't be that clunky to just get a jwt token, plus I'm writing an integration in .NET.  I saw your post and was hoping you could post a sample postman collection of what you got working to generate the jwt token.  I would really appreciate it.