Cannot Create JWT Bearer Token due to Unexpected Error

Hello, I am following these directions (https://developer.shiphero.com/getting-started/#authentication) to generate the necessary tokens to access the Shiphero api. Unfortunately, I get this message back when I attempt to do so:

{"message": "Unexpected error. Please contact a system administrator."}

I’m unsure why this error is occurring.

Hi @achempak!
Are you using this same email to make the request? are you using Postman to generate the token?
Also, have you changed your credentials lately?

Thanks in advance!
Tom

Hi @tomasw!
I’m using the same email to make the request. I’m using the terminal directly to generate the token using
curl -X POST -H "Content-Type: application/json" -d \ {"username": "myemail", \ "password": "mypassword" } \ "https://public-api.shiphero.com/auth/token"
Also I just changed my password a few hours back. Could that be the issue?

Hi @achempak!
In that case, could you try by using the old password instead and let me know if that works?
Thanks in advance!
Tom

Hi @tomasw!

Thanks for the reply. It works now. I guess it just took a while for the password change to come into effect!

Great, thanks for confirming that @achempak!
It is possible, we have an engineer working on optimizing that process because it might take a while to update, causing this kind of delay.
Thanks again!
Tom