gtr
05/12/2025, 5:21 AMgtr
05/12/2025, 5:21 AMVapi Support Bot
05/12/2025, 5:22 AMVapi Support Bot
05/12/2025, 5:22 AMVapi Support Bot
05/12/2025, 5:22 AMVapi Support Bot
05/12/2025, 5:22 AMgtr
05/12/2025, 5:22 AMAniah
05/13/2025, 2:28 AMhttp://localhost:3000/ URLs, showing "Please enter a valid regex URL" error. This prevents creating a private API key for local development, which then causes JWT authentication to fail with a 401 Unauthorized error.
## Why it's occurring:
The URL validation function is designed specifically for production domain names and wildcard subdomains, not [localhost](http://localhost). The regex pattern explicitly requires.
This pattern:
1\. Expects a hostname with a dot separator (e.g., example.com)
2\. Requires a TLD of 2-6 characters after the dot (\`.com\`, .org, etc.)
3\. Was never intended to validate [localhost](http://localhost) or IP addresses
The validation is working as designed for production domains, but doesn't accommodate local development environments. This is an intentional security constraint since JWTs generated with private keys should be using production domains in real-world scenarios.
For local testing, you need to use a service like ngrok to create a public URL.Ratnesh
05/16/2025, 2:34 PMRatnesh
05/16/2025, 2:36 PMtoken in your JWT.",
"error": "Unauthorized",
"statusCode": 401
}
even after putting the correct private api key and org id as said, please help, tried passing via Bearer as wellRatnesh
05/17/2025, 11:37 AMAniah
05/20/2025, 1:20 AMRatnesh
05/20/2025, 4:49 PMRatnesh
05/20/2025, 4:51 PMRatnesh
05/20/2025, 4:57 PMtoken in your JWT.",
"error": "Unauthorized",
"statusCode": 401
}Ratnesh
05/20/2025, 5:29 PMJeebs from eva.be
06/16/2025, 2:42 PMAniah
06/17/2025, 2:42 PMJeebs from eva.be
06/18/2025, 1:00 PMJeebs from eva.be
06/18/2025, 1:01 PMAniah
06/19/2025, 9:18 PM