On this occasion, I am doing a simple integration test with Node.js, Express, and a model defined with Mongoose.Schema.
Additionally, I am using Ngrok to expose my local environment as a connection to a production environment, allowing it to receive requests from Forest Admin.
It’s a bit strange, on ngrok’s side you get a 500 error, but on your agent’s side it’s a 404 error.
Do you know why? Instead of using ngrok, is it possible to use localhost directly?
In development environment, your agent can be run on your localhost.
Hello again,
What is your node version?
Can you upgrade your version and try again?
The code that causes problem =>
if (!QueryStringParser.VALID_TIMEZONES.has(timezone)) {
// This is a method to validate a timezone using node only
// @see https://stackoverflow.com/questions/44115681
if (!Intl || !Intl.DateTimeFormat().resolvedOptions().timeZone) {
throw new Error('Time zones are not available in this environment');
}