I am getting an error that request is server denied.

5 posts / 0 new
Last post
I am getting an error that request is server denied.

Hi, I am trying to use mapquest api in my nodeJS app but it's giving me this error:

"Status is REQUEST_DENIED. You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account"


I have no idea what's causing this problem. I mean I'm using mapquest not google maps and the error message says google maps.

I'm using nodegeocoder plugin and this is how I've set up the configs:

const nodeGeocoder = require("node-geocoder");

const options = {

  provider: process.env.GEOCODER_PROVIDER,

  httpAdapter: "https",

  apiKey: process.env.GEOCODER_API_KEY,

  formatter: null,


const geocoder = nodeGeocoder(options);

module.exports = geocoder;


the GEOCODER_PROVIDER is mapquest GEOCODER_API_KEY is the apikey of mapquest.

Since the error is for a
Since the error is for a Google function, you're probably not on MapQuest maps yet.


the process.env values are not rendred. Use require('dotenv').config() or put string values in options provider and api key. After that run the node app server and try again. It may work. Good Luck

Thanks for the suggestion, it

Thanks for the suggestion, it worked for me. I was importing routes before dotenv.config() which has all my environment variables

I had the same error.

The suggestion worked for me as well. Thanks!