I am getting above mentioned error while trying to download a file in angular 11. Status Code is 200 OK .Asp.Net Web Api is used to post file.
Below is the Code.
this.http.post<Blob>(url,{responseType: 'blob'}).subscribe({ next: versionfiledata=>{ return versionfiledata; }, error: error => { console.error('There was an error!', error); } } )Error:SyntaxError: Unexpected token M in JSON at position 0
Please reply urgently.
Regards,
Sachin Kulkarni
--
You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/angular/93395a1e-6e2e-422a-a43e-a610d40b6917n%40googlegroups.com.