Hi sachin,
Please check the post data and header.
On Wed, May 12, 2021 at 12:24 PM Sachin Kulkarni <
[email protected]> wrote:
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/angular/93395a1e-6e2e-422a-a43e-a610d40b6917n%40googlegroups.com
> <https://groups.google.com/d/msgid/angular/93395a1e-6e2e-422a-a43e-a610d40b6917n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
--
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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/angular/CACh%3DMxOF7Sa68z6BoDOp4JzdkAZOLkfZ80df0mYvzu8Q40m8kg%40mail.gmail.com.