moleculerjs/moleculer

Getting **Parsing failed at** error while calling garphql mutation for upload image

amitpatel9169 opened this issue · 2 comments

While calling Garphql mutation for upload image getting parsing failed error attach code and error screenshots for your references.

My code
image

In api.service.js setting of bodyParsers
image

Error I am getting
image

Please help me how can I resolve this error this same code run smoothly in ExpressJs

I'm assuming that the parsing error is being returned by the called API, but none of that code is shown in your example. What's the called API look like?

In called API, I get proper response in ExpressJs in molecular I Got Error. Using axios called GraphQL API you can see it in given code.

I think this error because of FormData().

image