title: Parsing Issue - Angular and Nodejs
body: <p>I have a form in angular. When I submit the form , it will hit the backend (written in nodejs - Sending an email functionality). In my local its working properly. But when I deployed in the cloud(here m using GCP- Deployed as  a standard environment), M getting an error like as follows.</p>
  <blockquote>
  <p><code>Error occured in sending Email .  {headers: d, status: 200, statusText: &quot;OK&quot;, url: &quot;https://coffycloud.com/send&quot;, ok: false, …} error: SyntaxError: Unexpected token &lt; in JSON at position 0 at JSON.parse (&lt;anon... message: &quot;Http failure during parsing for https://coffycloud.com/send&quot;</code></p>
  </blockquote>
  <p>I have gone thru many posts in SO. I have changed the responseType as text but no use. Please let me know where m I doing wrong.</p>
  <p>Service</p>
  <pre><code>export class ReachusService {
  
    constructor(private http: HttpClient) { }
    //Reach Us Service 
    private serializeObj(obj) {
    var result = [];
    for (var property in obj)
      result.push(encodeURIComponent(property) + '=' + encodeURIComponent(obj[property]));
  
      return result.join('&amp;');
    }
    baseUrl = &quot;/send&quot;;
    sendMail(user: User) {
    console.log(&quot;User Details &quot;, user);
    return this.http.post(this.baseUrl, this.serializeObj(user), { headers: { 'responseType': 'text', 
      'Access-Control-Allow-Origin': '*','Content-Type': 'application/x-www-form-urlencoded' }})
       .subscribe(
      (data: any) =&gt; {
        console.log(&quot;Mail has been sent to you &quot;);
      },
      err =&gt; {
        console.log(&quot;Error occured in sending Email&quot;, err);
      }
      );
      }
      }
  </code></pre>