title: Error : Dialogflow server in 'us' received request for resources located in 'europe-west2-dialogflow.googleapis.com.'
body: <p>I want to detect an intent with dialogflow, but my dialogflow agent's region is europe-west2 for some reasons. So to specify a location, I use the version v2beta1 of Dialogflow API like described in the documentation. But it doesn't worked and I have the following error <code>Dialogflow server in 'us' received request for resources located in 'europe-west2-dialogflow.googleapis.com.</code></p>
  <p>Code :</p>
  <pre class="lang-js prettyprint-override"><code>    const sessionId = crypto.randomBytes(16).toString(&quot;hex&quot;);
      // Create a new dialogflow session
      const sessionClient = new Dialogflow.SessionsClient(this.dialogFlowConfig)
      const sessionPath = sessionClient.projectLocationAgentSessionPath(this.projectId, &quot;europe-west2-dialogflow.googleapis.com&quot;, sessionId);
  
      // The text query request.
      const dfRequest = {
        session: sessionPath,
        queryInput: {
          event: {
            name: &quot;Welcome&quot;,
            languageCode: DialogFlowService.LANGUAGE_CODE
          }
        }
      }
  
      try {
        const responses = await sessionClient.detectIntent(dfRequest);
        const result = responses[0].queryResult!;
        Logger.debug(`  Query: ${result.queryText}`);
        Logger.debug(`  Response: ${result.fulfillmentText}`);
        if (result.intent) {
          Logger.debug(`  Intent: ${result.intent.displayName}`);
        } else {
          Logger.debug(`  No intent matched.`);
        }
        return result
  </code></pre>