org.springframework.web.client.RestClientException: Could not extract response no suitable HttpMessageConverter found
<p>I was fetching data from a CouchDB view using spring boot and everything worked fine, I then copy-and-pasted the json content provided by the view in a .json file and provided it in a URL using NodeJS and I know get the followin error message:</p>

<p><code>org.springframework.web.client.RestClientException: Could not extract response: no suitable HttpMessageConverter found for response type [class MyClass] and content type [application/octet-stream]</code></p>

<p>Here is the line of code where the error occurs:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>RestTemplate myRestTemplate = new RestTemplate();
ResponseEntity&lt;MyClass&gt; loadRecordResponse = myRestTemplate.getForEntity("http://localhost:4000/", MyClass.class);</code></pre>
</div>
</div>
</p>

<p>Here is the code I use in NodeJS to create my REST web service:</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>var fs = require('fs');

var express = require('express');
var app = express();

app.get('/', function (req, res) {
   fs.readFile('D:\\Userfiles\\x\\Desktop\\Local CouchDB\\loads.json', 'utf8', function (err, data) {
       console.log( data );
       res.end( data );
   });
})

var server = app.listen(4000, function () {

  var host = server.address().address
  var port = server.address().port

  console.log("Example app listening at http://%s:%s", host, port)

})</code></pre>
</div>
</div>
</p>