-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
When using JWT, if you pass null to allowedOrigins, you get error
{
"data": null,
"error": {
"statusCode": 500,
"message": "Internal server error. Contact support@vapi.ai for help."
}
}
Example:
{
"orgId": "xxxxxxxxxxxx",
"token": {
"tag": "public",
"restrictions": {
"enabled": true,
"allowedOrigins": [
null
],
"allowTransientAssistant": false
}
},
"iat": xxx,
"exp": xxx
}
Of course this should not happen, since it does not make sense, but it would be nice to get some sensible error message, or handling this somehow else, since it just caused us a bit head scratching, because we had misconfigured .env variables.
Metadata
Metadata
Assignees
Labels
No labels